F
francois
Hi,
I would like to redirect the user to the login page after the session time
out.
I tried to do a trick in the global.aspx.cs
protected void Application_BeginRequest(Object sender, EventArgs e)
{
object obj = Session["memberId"];
if (obj == null)
{
// do redirect
}
}
But it says that the Session object cannot be called in that context.
My goal is that I am trying to check at each request if the session object i
stored in my Session is still existing or not. If not, it means the session
is timed out and that i need to log in again and go back to the log in page.
Thanks for any help
Francois
I would like to redirect the user to the login page after the session time
out.
I tried to do a trick in the global.aspx.cs
protected void Application_BeginRequest(Object sender, EventArgs e)
{
object obj = Session["memberId"];
if (obj == null)
{
// do redirect
}
}
But it says that the Session object cannot be called in that context.
My goal is that I am trying to check at each request if the session object i
stored in my Session is still existing or not. If not, it means the session
is timed out and that i need to log in again and go back to the log in page.
Thanks for any help
Francois