Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access_asp thread: Re: Redirecting on session timeout


Message #1 by "jaro" <jharvan1111@r...> on Tue, 11 Feb 2003 15:51:08
Hi Simon,

Did you find some solution for this problem because I didn?t.
Please let me know.

Take care,
Jaro


> Hi,
> 
> I've looked around and cannot get a simple answer to my question 
(perhaps 
> there isnt one). Basically i want the user to be automatically 
redirected to 
> a default login page once their session has timed out.
> 
> So something simple like
> 
> "If (session.Timout = True) then
> Response.redirect("Login.asp") "
> 
> I have tried to change global.asa to
> 
> Sub Session_OnEnd
> Response.redirect("login.asp")
> 
> but this doesnt do anything
> 
> Is there a simple example anyone can show me?
> 
> Thanks
> 
> Simon
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp
> 
Message #2 by "sashidhar" <sashi@a...> on Wed, 12 Feb 2003 12:23:09
hey use this with in asp page

IF Session(your_sessionid) = "" THEN
	Response.redirect("Login.asp")
END IF 
 

Message #3 by Jaroslav Harvan <jharvan1111@r...> on Wed, 12 Feb 2003 22:45:09 -0800
Hi,

this is nice. I'm using this but what about automatically redirection
after session timeout, because this solution expects client action ...

Thanks
Jaro

Wednesday, February 12, 2003, 4:23:09 AM, you wrote:

s> hey use this with in asp page

s> IF Session(your_sessionid) = "" THEN
s>         Response.redirect("Login.asp")
s> END IF 
 

s> ---
s> 
s> 



-- 
Best regards,
 Jaroslav                            mailto:jharvan1111@r...

Message #4 by "Darrell" <darrell@b...> on Thu, 13 Feb 2003 14:31:34 -0000
Hi

This will work once the user requests a new page but there is a another way
of doing this.  Depending on the time you have your session set to expire
(the default normally being 20 minutes) set a meta refresh as follows:

<META HTTP-EQUIV="refresh" CONTENT="1200; URL=sessionexpired.asp">

Once the 20 minutes has expired the user will be redirected to the
sessionexpired page where you can display a session expired notification
page and give him the option to log in again.

What I should stress about this method is to calculate the time the user
will need because nothing will annoy somebody more than entering a lot of
information only to be redirected and losing their work.

Cheers
Darrell

-----Original Message-----
From: sashidhar [mailto:sashi@a...]
Sent: 12 February 2003 12:23
To: Access ASP
Subject: [access_asp] Re: Redirecting on session timeout

hey use this with in asp page

IF Session(your_sessionid) = "" THEN
        Response.redirect("Login.asp")
END IF




  Return to Index