Click to See Complete Forum and Search --> : How do I come to know about Session Expires


manishjain
May 15th, 2003, 07:13 AM
Platform: IIS 5.0/ASP/SQL Server 2000/IE 5+

I have set session expiry to 20 minutes in IIS after which I redirect the user to a login screen whenever he accesses my web.

How do I log the time at which the session expired?

Basically I want to have a log of time in which the user accessed the web. I have the Login Time, But I need the logout time, which is currently not available when the user just closes his window without logging out, or his session expires. I can control the window close using <body onClose...> but how do I handle session expiry?

Thanks and Regards

Manish
manishj@acidaes.com

antares686
May 15th, 2003, 08:03 AM
Use

sub Session_OnEnd


In your Global.asa to catch the sessions end.