nyfiken
07-22-2005, 06:30 AM
Hi!
This is the code in my global.asa file. I want the file "end.asp" to start when a the sessions timeout is 1 minute, just to see if it works. But i dosn't work.
Does the Sub Session_OnEnd only activates when the browser is closed down or? In the end, I want a page to open when the sessions is timeout to inform visitor that their session is closed to prevent problems with all sessions variables writing to files and other things.
Could it be solved in anoterh way?
<script language="vbscript" runat="server">
Sub Session_OnStart
Session.TimeOut = 1
response.redirect "start.asp"
End Sub
Sub Session_OnEnd
response.redirect "end.asp"
End Sub
</script>
Thanks
This is the code in my global.asa file. I want the file "end.asp" to start when a the sessions timeout is 1 minute, just to see if it works. But i dosn't work.
Does the Sub Session_OnEnd only activates when the browser is closed down or? In the end, I want a page to open when the sessions is timeout to inform visitor that their session is closed to prevent problems with all sessions variables writing to files and other things.
Could it be solved in anoterh way?
<script language="vbscript" runat="server">
Sub Session_OnStart
Session.TimeOut = 1
response.redirect "start.asp"
End Sub
Sub Session_OnEnd
response.redirect "end.asp"
End Sub
</script>
Thanks