use "cookiename.setMaxAge()" method
zulfi
Keep Smiling. It does improve your face value. :-)
----- Original Message -----
From: Naresh Sharma <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 22, 2000 7:28 AM
Subject: Why init() ???
> Can anyone tell me how is cookie stored when I construct a Cookie class
> of Servlet API.
> Because as soon as the session is over (that is I close all browser
> windows) cookie is lost.
> Do I have to set its age or what??
> Somwhere it says that the server saves the cookie whenever the memory is
> full or server shutsdown.If so then where is the cookie stored???
>
> The problem might be very simple.But reply is anticipitated..
>
> thanks
> naresh
>
>
___________________________________________________________________________
> 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
>
___________________________________________________________________________
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