cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upayavira" ...@upaya.co.uk>
Subject Re: Persistent Cookies
Date Thu, 12 Jun 2003 12:09:25 GMT
> I'm playing with using Cookies from flow, and I've got a basic system
> going, which is great.
> 
> However, I'd like to make the the cookie persistent (i.e. stays
> forever), but the servlet cookie class setMaxAge takes an int, which
> only allows me to persist for 27 days
> 
> How can I extend beyond this?

Er. Um.

I've just seen that an int in Java is 32 bits, not 16, which means that, instead of lasting

for a matter of days (or should it be hours), a cookie can be set to last for up to 68 
years. I suspect that should be long enough for me :-)

Oops. Upayavira

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


Mime
View raw message