Reputation: 297
I need to redirect the user to the login page on session timeout. The issues with Session_End method in the global.asax are:
Upvotes: 1
Views: 2423
Reputation: 16623
Isn't Session_End raised directly on server, without any interaction from user?
What happens, when I go to your page (and start a session), close browser window and never return? Then it's understandable, that HttpContext.Current.Response
is null.
Upvotes: 1