I found several similar questions, but no one gave me what I really needed.
Here is what I added to my web.config to handle the expiration of a user session:
<sessionState mode="InProc" timeout="1" />
After 1 minute, the Session_End event from Global.asax raised:
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs) Response.Redirect("Login.aspx") End Sub
This does not work because:
Response is not available in this context.
(By the way, this question received an answer saying that this is normal, and he received upvotes).
I don't want anything fancy. I just want an easy way to redirect the user to the login page when the session expires. It's all.
Thanks.
source share