• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Session Query

 
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Good Day!!!

I have this query to ask about session since I have'nt made use of session that much. I hope I had posted on the right forum.

If I set this configuration in my web.xml for session configuration.



It means user has 10 minutes to login to the web application before the session will be invalidated by the server if I did not explicitly invalidate the session by calling session.invalidate.

If I have this scenario, user logs into the system on the 1st minute and a new session was created, but then the user disappears..

User then comes back before the 10 minute expires then do some heavy processing, chances are my session attributes would be lost when the 10 minutes is exceeded?

My assumption is that the web server will invalidate the session regardless of the continuous request from the user since time already expires? Am i correct with this assumption? From what I have understand, session starts the moment a new session was created and session will be retain on the server regardless of the activity/inactivity from the user.

Is it good design to just let the session times-out and forward the user to the JSP telling them that the session has time out or is there an API for session extension?

Thanks to all..
 
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Session time out specifies the maximum inactive time interval after which session will be invalidated. It applies only when user remain inactive (in other words theres no user request) for the specified amount of time.
If theres any user request before session timeout, session will not be invalidated up to next time out interval.
 
A wop bop a lu bop a womp bam boom! Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic