Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cookies  RSS feed

 
Ravinder S Edhan
Ranch Hand
Posts: 57
  • 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
  • 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
  • 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!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!