Le 12:07 12/10/99 +0100, Miles Sabin a �crit:
>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.
But how to set the max age.. to the max age in situation one doesn't want
the cookie to expire (in an intranet where the users are always the same)
// Pose du cookie email
Cookie emailCookie = new Cookie ("email", to);
emailCookie.setPath("/");
emailCookie.setMaxAge(Integer.MAX_VALUE);
res.addCookie(emailCookie);
Doesn't seem to work
___________________________________________________________________________
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