session timeout event

B

buu

how could I handle session timeout event in asp.net?
I would like to perform some action on database when it happens
 
G

Guest

You can do cleanup, logging, etc. in the Session_OnEnd event in Global.asax.
Peter
 
G

Guest

You can do cleanup, logging, etc. in the Session_OnEnd event in Global.asax.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net





- Show quoted text -

There are some situations when session will timeout without the
Session_onEnd firing. Don't rely on it, and use this event with
additional check. If it's important to find the timeout, log each
session in the database (sessionId, date-time), update it (date-time)
on user activity (and on Session_onEnd) and regulary check if database
still has any "active" session after certain period of time (=timeout).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top