Hi,
I am maintaining my user's UserIDs in Sessions, once the user signs in using the Sign In page his/her user id gets stored in the Session and then on every page I check the session for a value to make sure that user has properly signed in. There is also a Sign Out btn to sign out. When the user properly signs out using the sign out btn I write some information to the database. The issue comes when the user improperly signs out by closing the browser window or the user may leave the window inactive for a long time which will result in session expiration, in both circumstances I want to be able to write some info to the database.
I suppose in ASP you can achieve this by triggering the OnSession_End (or something like that) event in global.asa file, is there a similar solution for JSP?
TIA