This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cookies

 
Ravinder S Edhan
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
danny liu
Ranch Hand
Posts: 185
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To delete/expires a cookie, you use this:

cookie.setMaxAge(0) which means die now!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic