Re: Logg off users with session.timeout
From: Michelle (Michelle_at_bwalk.com)
Date: 02/25/05
- Next message: Boonaap: "Re: datagrid question"
- Previous message: IPGrunt: "Re: The Demise of C#"
- In reply to: viktor9990: "Logg off users with session.timeout"
- Next in thread: viktor9990: "Re: Logg off users with session.timeout"
- Reply: viktor9990: "Re: Logg off users with session.timeout"
- Messages sorted by: [ date ] [ thread ]
Date: 25 Feb 2005 07:34:42 -0800
Here's what we do; if the session has expired or doesn't exist we
redirect to a "timed out" page. The timeout page contains only a
couple lines of javascript to pop up a box alerting the user that they
have timed out then redirects them back to the login page. We check
the session on every page to make sure it still exists.
in each page:
--------------------
If Session("User") Is Nothing Then
Response.Redirect("../TimedOut.aspx")
End If
timeout page:
--------------------
function window_onload()
{
alert('Your session has timed out. Please log back on.');
top.location.href = 'default.aspx';
}
I'd also like to hear what other people are using to see if we could
change our method to something better - or if this is the norm.
Thanks!
Michelle
- Next message: Boonaap: "Re: datagrid question"
- Previous message: IPGrunt: "Re: The Demise of C#"
- In reply to: viktor9990: "Logg off users with session.timeout"
- Next in thread: viktor9990: "Re: Logg off users with session.timeout"
- Reply: viktor9990: "Re: Logg off users with session.timeout"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|