Bhushan Bhangale wrote:
>
> maximum limit of integer makes the cookie persistent
> for only 25 days, because the parameter to this method
> is in millisecond.
>
The servlet spec is available at:
<URL:http://java.sun.com/products/servlet/download.html>
From the 2.1 spec:
public void setMaxAge(int expiry);
... The cookie will expire after the given
number of seconds have passed. Negative values
will ensure that the cookie will not persist on
the client. A zero value causes the cookie to be
deleted from the client.
Do you have an older container? Or have some other
reason to believe that your servlet container uses ms
instead of seconds? In the worst case, you could
bypass the cookie routines and just add the cookie
header manually.
-cks
___________________________________________________________________________
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