Hi,
You can set the age of the cookie using the setMaxAge(int expiry) of the
Cookie class(takes the value in seconds). If the parameter passed is -1
(default) the cookie will be deleted immmediately after your browser closes.
I think this is what is happening in your case. If the value is set to 0,
the cookie is deleted immediately from the browser. So, using appropriate
value you can persist the cookie.
Ashutosh
----- Original Message -----
From: "Raja Sekhar Kosuri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 5:06 AM
Subject: Regarding Persistent Cookies!!!!
> Hello !!
>
> I set the path to root,still i am unable to retreive cookies after
> closing and opening the window!!! Can you please suggest some thing
> about this.
>
> Thanks
> Raj..
>
>
>
> Set the path of the cookie to root
>
> -----Original Message-----
> From: Raja Sekhar Kosuri [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 27, 2000 4:21 PM
> To: [EMAIL PROTECTED]
> Subject: Regarding persistent cookies !!!
>
>
> Hello All !!!
>
> I need small clarification. When i am writing cookie to browser
> from servlet,the cookies are no longer there once i close the
> browser.Is there a way to make cookies persistent so that we can
> retreive cookie info later after closing and opening the browser?
>
> Please respond back !!!!
>
> Thanks&Regards
> Raj..
>
>
>
>
> ---------------------------------------------------------------
> This Message was Powered by Xcel Communications
> Sign up for your FREE EMAIL account today at http://www.mailroom.com
> Give your FAX machine an email address http://www.faxroom.com
>
> ========================================================================
> ===
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
> ========================================================================
> ===
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>
> ---------------------------------------------------------------
> This Message was Powered by Xcel Communications
> Sign up for your FREE EMAIL account today at http://www.mailroom.com
> Give your FAX machine an email address http://www.faxroom.com
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".