Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



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

How can i save session-id even if the browser closed?  RSS feed

 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

I want to have an expanded session. i mean that even if the browser was closed the session will still be active (unless the user was not active for 15 minuets).

Any idea how to do this?
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a cookie. Set its value with some long and unique autogenerated key. Save the value as a key in the DB along with the information you want to store in the desired scope. You can use a Filter to check the cookie and get/set the desired information accordingly.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!