aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cookies" Watch "Cookies" New topic
Author

Cookies

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:
cookie.setMaxAge(60);

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

Cheers
Ravinder
Pavel Cherkashin
Ranch Hand

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

url1
url2
url3
API
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 />www.linkedin.com/in/pcherkas
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Cookies
 
Similar Threads
How to access Cookie value using EL
about Cookies
I know it has been beaten to death, but ...
servlet requires refresh to show cookie values
How can we know whether Cookies are accepted or not