Forums
This topic is locked
Session.Timeout re-direct!!!!!!!!
Posted 24 Nov 2003 19:34:03
1
has voted
24 Nov 2003 19:34:03 James Wilkinson posted:
I am using DWMX ASP - VBScriptI can set the session.timeout to what I need, but I want the user to be re-directed to a another login page (login.asp) when it times out, at the moment I just get an error page.
I have achieved this by using
META HTTP-EQUIV="refresh" CONTENT="1200; URL=login.asp"
but this need to be put on every page, which just isn't feasible.
Can anyone help please???
Replies
Replied 28 Nov 2003 18:25:07
28 Nov 2003 18:25:07 Russell Marshall replied:
Try this
<%
If Session("SessionVar"
= "" Then
Response.Redirect("index.html"
End If
%>
It should do the trick. Let me know.
Russell
<%
If Session("SessionVar"

Response.Redirect("index.html"

End If
%>
It should do the trick. Let me know.
Russell