Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

force logout  RSS feed

 
Muhammad Imad Qureshi
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I force the user to logout after certain period of activity lets say 60 minutes. In my web.xml I have

<session-config>
<session-timeout>20</session-timeout>
</session-config>

is this the only place to configure force logout or is there anything else.
I am using jboss.
Thanks
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The session timeout triggers after a certain period of inactivity. If you want to log out a user after a certain amount of activity, you'll need to implement that yourself - the servlet API has no provisions for that. But why would you want to log out an active user?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!