• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cookies

 
Vineela Devi
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What happens when the max age of the cookie is set to 0.

Regards
Vineela
 
Radhika Jonnalagadda
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It gets destroyed as soon as it is created.
 
Amitkumar Dhama
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Radhika what about if i9t is set to -1....
 
Kim Lauwers
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Normaly the cookie is never destroyed in that case
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the maxAge is set to a negative value, it means it should expire once the browser is closed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic