• Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Time out Issue

 
Ajith Prasad
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mention session timeout property as 30(mins) in web.xml and in servlet i mention session.setMaxInactiveInterval("20(mins)"); so which one will be executed, the session expires after 30 mins or after 20 mins.
 
Pranav Pal
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The session for which you called session.setMaxInactiveInterval(20) will expire after 20 min. But other sessions will expire after 30 min.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"LSBU",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!