Friday, April 19, 2002 12:37 PM
I've provided a log-out for my users that makes an explicit call to session.invalidate().
If the session is invalidated due to a timeout, I'd like to store all available data, so when the user comes back, they can pick up where they left off.
The session contains some objects that implement HttpSessionBindingListener, and code in valueUnbound() attempts to store info to the db.
If the user logs out, this db update shouldn't happen. Using servlet 2.2, how can I tell if the session invalidation was the result of a timeout?