A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
Handling session timeout and session invalidate differently
Joined: Apr 08, 2008
Apr 16, 2011 04:32:06
In my application i am using spring web flow,
(richfaces). I have a doubt and that is how can i differentiate between session timeout and a call to session.invalidate().
Because in case of session time out i want to redirect user to a Page A and in case user logs out of application i am invalidating the session and want user to redirect to login page.
Any pointer how can i achieve this because i am not able to handle session timeout and call to session.invaidate() differently.
Author and ninkuma
Joined: Jan 10, 2002
Apr 16, 2011 10:25:24
As you are the one invalidating the session, you can take whatever action you want afterwards. There's no need for detection as you
when you are invalidating the session.
Asking smart questions
Books by Bear
Madhan Sundararajan Devaki
Joined: Mar 18, 2011
May 20, 2011 04:24:58
I believe, using HttpSession.getLastAccessedTime() and HttpSession.getMaxInactiveInterval() APIs you may be able to acheive the needful.
Not many get the right opportunity !
subject: Handling session timeout and session invalidate differently
session timeout implementation
Redirecting to Login page on session timeout!!
User Timeout or Logout?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015