• Post Reply Bookmark Topic Watch Topic
  • New Topic

User Timeout or Logout?  RSS feed

Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am building a web application that will need to give a specific error message based on whether the persons session timed out or they logged out of the application. Both cases mean that the user will be redirected to the login page, but I want to have a different error message in each case. The problem I am coming to is how to tell the difference. I don't really want to use cookies to store the state. I know that I can use a session binding listener on timeout to do something before the timeout, but I have no real place to store the state. I can't store it on the database because I have to check this before we know who the user is.
Also I thought that there might be a way to tell the difference intrinsically with the invalidated session itself. But both use cases invalidate the session, and there is not way to get information from it since it throws an exception so I have to persist this state information elsewhere.
If anyone has any ideas on this subject, they would be greatly appreciated. Thanks.
Chris Heady
[This message has been edited by Chris Heady (edited June 28, 2001).]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!