Zubair Ahmed

Greenhorn
+ Follow
since Oct 29, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Zubair Ahmed

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
22 years ago
JSP