[opencms-dev] Cookies?

Nico Krause Nico.Krause at nsc.eu.com
Tue Jan 7 16:57:04 CET 2003


Hi,
 
I'm just trying to implement a "Remember Login" function and maybe need some
assistance...
 
Does someone have already done writing and reading cookies within OpenCMS?
Is there any method or function in OpenCMS API? 
 
I'm currently trying something like this...
 
LoginCookie.setMaxAge(86400*365);
HttpServletResponse res = (HttpServletResponse)
cms.getRequestContext().getResponse().getOriginalResponse();                
res.addCookie(LoginCookie);                                       
 
Maybe I write the Cookie too late within the code, because it seems the
Cookie is not written...
 
Does someone have experiences with this - please help !
 
Thanks in advance and a Happy New Year for all ... (late but I will not
forget)
 
Nico
 
 
 
____________________________________
Nico Krause
NorthStar Communications GmbH
Wallbergstr. 20-22     85221 Dachau
Telefon: +49 (0) 81 31 / 9 96 87 - 53
Fax:      +49 (0) 81 31 / 9 96 87 - 29
Mobil:    +49 (0) 1 71 / 3 70 10 70
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030107/ea1eb46d/attachment.htm>


More information about the opencms-dev mailing list