This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Cookies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "Cookies" Watch "Cookies" New topic


Ravinder S Edhan
Ranch Hand

Joined: Dec 15, 2003
Posts: 57
Hi Everybody,

Neede some information regarding Cookies.

To delete/expires a cookie, we use following method:

What does this mean?
Will this cookie get deleled after a minute from the system where cookies are stored or will it remain there?

Pavel Cherkashin
Ranch Hand

Joined: Mar 04, 2005
Posts: 47
Regard this:

J2EE 1.4 Tutorial
Download Specs

and before write question, try to find answers yourself in Java Servlet Specification 2.3 or in JavaServer Pages Specification 1.2

Pavel Cherkashin - <br />SCJP, SCWCD, SCDJWS, SCBCD, SCEA, ...<br />
danny liu
Ranch Hand

Joined: Jan 22, 2004
Posts: 185
To delete/expires a cookie, you use this:

cookie.setMaxAge(0) which means die now!
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Cookies
It's not a secret anymore!