Umesh mehendale wrote,
> I m getting saved cookie back, till I m in browser.
> once I close the browser and reopen , the cookie seems
> to be lost.

Sounds like you're not setting the cookies Max-Age/
Expires attributes. If you don't, the default behaviour
is for the user-agent to discard the cookie 'when the
users session ends' which typically means when the
browser is quit ... which is the behaviour you're
getting.

Adding,

  someCookie.setMaxAge(60*60*24*28)

will give the cookie a 28 day lifetime.

Cheers,


Miles

--
Miles Sabin                          Cromwell Media
Internet Systems Architect           5/6 Glenthorne Mews
+44 (0)181 410 2230                  London, W6 0LJ
[EMAIL PROTECTED]           England

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to