We seem to be having a common problem with our web application; specifically that when the user attempts to click on a RadGrid, RadTabStrip or any other ajax enabled component on the page after the session has expired, an error occurs. This is the specific error:
I've done several searches on this topic, and one of the solutions that was recommended was to set the Response.RedirectLocation property in the Login page. I have tried this to, but I have still been unsuccessful.
As a workaround, I added a timer to my master page. My goal was to set the interval of the timer for the 15 minute session life and than automatically redirect the user to the Login page. The only problem is I cannot reset the timer if the user remains active, so it simply expires in 15 minutes (or whatever interval it is set to) whether the user is active or not. I am trying to use the following code to reset the timer:
The code is being called, but it is not effecting the timer.
Any ideas on how to implement this solution?
Thanks,
Jerry
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12030
I've done several searches on this topic, and one of the solutions that was recommended was to set the Response.RedirectLocation property in the Login page. I have tried this to, but I have still been unsuccessful.
As a workaround, I added a timer to my master page. My goal was to set the interval of the timer for the 15 minute session life and than automatically redirect the user to the Login page. The only problem is I cannot reset the timer if the user remains active, so it simply expires in 15 minutes (or whatever interval it is set to) whether the user is active or not. I am trying to use the following code to reset the timer:
protected void Page_Load(object sender, EventArgs e)
{
SessionTimer.Enabled = false;
SessionTimer.Interval = 30000;
SessionTimer.Enabled = true;
}
The code is being called, but it is not effecting the timer.
Any ideas on how to implement this solution?
Thanks,
Jerry