Although the Session_OnEnd event fires on the server with the session has
timed out, it does not cause the client page to reload, and thus the client
page knows nothing of the redirect.
What you could do is set a create a javascript function that runs on the
client, with the same wait time as the session time on the server. Once the
page loads, start the time. If it reaches the session time limit, it could
window.navigate to the desired page at about the same time as the server
would time out. If they move to a new page before the limit, the client
timer resets when the new page loads, as does the server timer. You could
even place this javascript in a user control that you could then drag and
drop on every ASP page that you want to use it on...
Hope that helps.
-Darrin
"Weave" <tw*******@suscom.net> wrote in message
news:10*************@corp.supernews.com...
I would like to redirect to a logout page after a session has timed out.
I have placed a response.redirect "loggedoff.asp" in the Session_OnEnd
subroutine in the global.asa, but it does not move to the page after
timeout occurs.
Any suggestions?
Thanks in advance ....