Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Invalidate problem  RSS feed

 
Arjun Chauhan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a web based application.I want to restrict the number of users by 2. I am using listener class to count the sessions. My problem is that when user closes the window directly(without logout),How to count active sessions. It is happening that when somebody closes the application (without logout),the session counter will not decrement. I am facing this problem as i dont find any event to handle active sessions count with above said problem.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Sebastian Tincu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try checking if the user closes it browser window with some javascript. Though I think there are some issues with this too.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!