You're not going to be able to do this with the global.asa file because the user could close their browser window and go to lunch without the session expiring.
What you want to do is create a session variable at the time the user logs into your application. Something like this.
Code:
Session("loggedin") = "Yes"
Then write the following lines into an include file, name the file checksession.inc and place the include file on your webserver.
Code:
<%
IF Session("loggedin") <> "Yes" THEN
Response.Redirect "somepage.asp"
END IF
%>
Then the top of all of your ASP pages would look something like this.
Yes, I got this far. But what I want to do is have a new page load as soon as the session times out - even if the user does not try to access a protected page.
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.