cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JD Daniels ...@kismetsoftware.com>
Subject Re: Cookies in flow by name
Date Wed, 31 Aug 2005 00:51:03 GMT
grrr.. I'm sorry guys this has been very frustrating for me :(

Thank you both for answering :)



JD Daniels wrote:
> cocoon.request.getCookieMap()['mycookie'];
> cocoon.request.getCookieMap();
> 
> Both end up undefined - yet the cookie does exist.
> 
> I am also using the cookie to choose which xsl to use in my sitemap:
> 
> <map:transform 
> src="context://xsl/document2{request:cookieMap/mycookie/value}html.xsl">
> 
> {request:cookieMap/mycookie/value} being the important part there - it 
> works 100% - I'm sure i should be able to do the same in flow.
> 
> Mark Lundquist wrote:
> 
>>
>> On Aug 30, 2005, at 3:17 PM, JD Daniels wrote:
>>
>>> Well, I have not ever looked at input modules to this point. I 
>>> suppose I could look into them and see, but it seems to me that 
>>> getting a cookie by its name should be a one line trivial thing.
>>
>>
>>
>> Hi JD,
>>
>> I think you should be able to write
>>
>>     var foobar = cocoon.request.getCookieMap()['foobar'];
>>
>> Give that a shot...
>> —ml—
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message