11
Answers

Clear session in Session_End event of global.asax

Kruti Pushtiwala

Kruti Pushtiwala

13y
20.3k
1
Hi,

I want to clear session manually in Session_End event of global.asax, since I want to add user's logout time even if user close the browser using browser close button directly or by clicking log-out link. My user identification number is being stored in session so I can handle this in Session_End event. After that I want to delete that session manually, but in this case I am getting session object's value null. Or is there any other way to handle these?

Thanks.

Answers (11)