Redirect to Error Page on ASP.NET Web Forms Session Timeout
New DiscussionHi,
In my website I have around 10 screens, each of which display a session variable.
I have seen that the function void Session_End(object sender, EventArgs e) of Global.asax is called when session expires. But redirecting to session timeout page by doing Response.Redirect will not work there.
Can anyone please help me with a way to redirect to error page from Session_End function of Global.asax.
You are most welcome to give me any other approach to handle session timeout at one place, instead of checking session variables in each and every screen and appropriately redirecting to error page.
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post