This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Timeouts  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How do I go abt passing variables from page to page (every page) without storing it in HttpSession and not via request.setAttribute/request.setParameter - pretty tedious? I can't store it the session because I need to access the variable when the session times out.
Thanx in advance.
 
James Carman
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use a class implementing the HttpSessionBindingListener interface to hold all of your parameter values. In the valueUnboud method, just rebind the object back into the session. This is how you can get around the session timeout. Hope this helps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!