Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to set cookie expire time

770455Jul 5 2008 — edited Jul 5 2008
Hi I'm new to jsp,

please tell anybody, how to set cookie expire time.

I know about setMaxAge(); but my requirement is set the expire time until close the browser or logout.

And one more thing is how to delete cookies while logout.

Thanks in advance
---------------
achchayya.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 2 2008
Added on Jul 5 2008
2 comments
181 views