Try setting the age to some positive number. The age is the number of
seconds the cookie should live. I believe the default is -1, causing the
cookie to be deleted when you exit the browser. A value of 0 deletes the
cookie immediately.

Try giving it a life of 3600 (1 hour) and see if it works:
myCookie.setMaxAge(3600);

Good luck!
   Mark

On Mon, 27 Nov 2000, Raja Sekhar Kosuri wrote:

> 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..
>
>

--

Mark Wutka
Author of Special Edition Using Java Server Pages & Servlets (ISBN: 0789724413)

===========================================================================
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".

Reply via email to