cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: retrieving a cookie value in flowscript
Date Tue, 30 Nov 2004 13:34:34 GMT
Do:
I've just tried this locally and had it working. A few things to try:

print(cocoon.request.cookies);
print (cocoon.request.getCookie("yourcookie"));

What does they say?

Remember that a session ID might be your first cookie. That may well not 
be what you are after.

Regards, Upayavira

David Merrilees wrote:

>No, none of that works. I think there is a bug in cocoon. 
>
>-----Original Message-----
>From: H.vanderLinden@MI.unimaas.nl [mailto:H.vanderLinden@MI.unimaas.nl]
>
>Sent: 30 November 2004 12:22
>To: users@cocoon.apache.org
>Subject: RE: retrieving a cookie value in flowscript - Email has
>
>Try to break it down in steps:
>
>var cookies = cocoon.request.getCookies(); if (cookies.size() > 0) {
>   var firstcookie = cookies[0];
>   print("first cookie value: " + firstcookie.getValue()); }
>
>HTH.
>
>Bye, Helma
>  
>

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


Mime
View raw message