Clear session in Session_End event of global.asax

Jan 3 2011 4:35 AM
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)