Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

How do I redirect after session expires?

Posted 01 Sep 2006 03:24:17
1
has voted
01 Sep 2006 03:24:17 lou castro posted:
I would like my users to be redirected to the login page if their session expires (about 20 minutes). I have read many articles about this, but it doesnt clearly indicate the proper syntax. Can someone please help?
Thanks

Replies

Replied 01 Sep 2006 17:18:31
01 Sep 2006 17:18:31 micah santos replied:
try this one:

<%

Session.TimeOut = 30

If Session("varName" = "" Then
response.redirect "expire.asp"
Else
// main page
End If

%>
Replied 02 Sep 2006 04:02:56
02 Sep 2006 04:02:56 lou castro replied:
I will try this...tyvm
Where do i put this in the page?
Replied 17 Oct 2006 07:19:20
17 Oct 2006 07:19:20 micah santos replied:
you can put it on the very top of your page.

Reply to this topic