We are building on the site. We should be able to redirect the user to the default page when his session ends.
At first glance, we used Session_End with Response.Redirect to complete this task.
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
Response.Redirect("~/global/exit.aspx")
End Sub
But it generates crapload from Response, which is not available in this context. Naturally, we do not want to spam our server error logs.
What is the most efficient way to handle a session ending in ASP.NET 2.0?
source
share