Is there a way to catch session timeouts, or to redirect users to another page on timeout?
I've googled a bit, and I hope I'm not mistaken, the Global.asa file seems to offer something like this, but it doesn't work for me.
I've got:
<script language="vbscript" runat="server">
Sub Session_OnStart
Session.Timeout = 20
End Sub
Sub Session_OnEnd
Response.Redirect("Main.asp")
End Sub
</script>
However, I've placed it into my application directory (the root of the app), and yet nothing happens. I've tried shortening the timeout time, and yet it doesn't redirect for some strange reason.
Have I gone wrong somewhere?
Thanks.
Maldini.
I've googled a bit, and I hope I'm not mistaken, the Global.asa file seems to offer something like this, but it doesn't work for me.
I've got:
<script language="vbscript" runat="server">
Sub Session_OnStart
Session.Timeout = 20
End Sub
Sub Session_OnEnd
Response.Redirect("Main.asp")
End Sub
</script>
However, I've placed it into my application directory (the root of the app), and yet nothing happens. I've tried shortening the timeout time, and yet it doesn't redirect for some strange reason.
Have I gone wrong somewhere?
Thanks.
Maldini.