redirect on timeout

  • Thread starter Clare Strickson
  • Start date
C

Clare Strickson

Hi

Is it possible to redirect the user to a login page when the session has
timed out?

thanks in advance

David Strickson
 
E

Evertjan.

Clare Strickson wrote on 05 dec 2005 in
microsoft.public.inetserver.asp.general:
Is it possible to redirect the user to a login page when the session has
timed out?

No,

At session-timeout there usually is no connection with the server,
and more often than not there is not even an active page of the session on
the browser.

You could set a clientside timeout, that redirects after say 20 minutes if
not reset by a page change, but that suffers from the above too.

A proper login procedure is redirecting any page request to a login page if
not in logged in or no more in session:


<%
if session("loginAccepted")<>"sure" then response.redirect "/login.asp"
%>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,827
Members
47,373
Latest member
Desiree036

Latest Threads

Top