This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maintaining the scope of a session login in struts2 web app

 
Dushyant Chhetri
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What is the best way to maintain the scope of a session in a struts2 web application.

I mean if a user logs in and after validation say the user can remain idle for 10 mins after which his session will be over or uptill the time he logs out himself.

any special means in STRUTS 2 which helps us to maintain the session or should we control the session variables ourselves using SessionAware??
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, sessionAware will give the wrapped map object of session but it couldn't do what you are expecting do it yourself with javascript.
 
Dushyant Chhetri
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Mohan,

Does this mean that Session Handling has to be done entirely by the developer , Is there no interceptor to do the same at all ??
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. You can't even write custom interceptor for this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic