Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

session should expire after 10 minutes  RSS feed

 
Ven Ram
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
My requirement is if any user into my application is logged in beyond 10min, i have to forcefully expire his session and logout.

Can any one suggest me how to do that ..??

Thanks
 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
session.setMaxInactiveInterval();
 
Ben Kingsly
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do want to expire the who is inactive for more 10 min then u can use
session.setMaxInactiveInterval();
else u have to log in the time, in the database, the time user logs in and verify the detail when the user attempt to move around.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!