Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

asp.net session variables on Session_End

I need to access Session variables on Session_End event in global.asax.cs, but HttpContext.Current is null, so none of the session variables are accessible.

a) Can I access user session somehow differently, or

b) Is there any other event jut before Session_End, I could access user's session variables?

like image 542
the berserker Avatar asked Jan 08 '10 19:01

the berserker


1 Answers

HttpContext.Current is not available inside of Session_End, but you can access the session instance directly with this.Session.

like image 194
Ray Avatar answered Sep 21 '22 02:09

Ray