Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

setMaxAge

 
Bharatesh H Kakamari
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I provide 3600 as a parameter to setMaxAge for Cookies I means I am setting the Cookie age to one hour. How is one hour calculated at the server ? Is it one hour from the actual creation of the cookie. Is there a difference between the Cookie life-time and the actual one hour ?
 
Bhupinder Dhillon
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is one hour from the last accessed time stored in the session.
It is updated everytime you access the session.
 
A day job? In an office? My worst nightmare! Comfort me tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!