I need a way to determine, if my session has been invalidated due to session time out. I have a HttpSessionBindingListenner, which has a valueUnbound() interface, which gets called whenever my session is invalidated. However, my session is invalidated, both when my user Logs off, as well as when he crosses the session timeout limit.
Is there as way where I can uniquely identify, when my session has been invalidated due to session timeout.
I have already implemented a logic, in valueUnbound(), where i check the timestamp of the session's creation time as compared to the current timestamp, and determine if the difference is more than or same as the session timeout parameter. However, is there any alternative for the same.
If debugging is the process of removing bugs, then programming must be the process of putting them in. -- Edsger Dijkstra