We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

session timeout

Thread ID:

Created:

Updated:

Platform:

Replies:

62139 Jun 8,2007 07:20 AM Jun 12,2007 05:35 AM ASP.NET Web Forms (Classic) 1
loading
Tags: FAQ
biman mitra
Asked On June 8, 2007 07:20 AM

i just want to prevent session timeout

Poornima Joy Balan [Syncfusion]
Replied On June 12, 2007 05:35 AM

Hello,

Here's the code snippet to prevent the session time out.

override protected void OnInit(EventArgs e)
{
base.OnInit(e);

if (Context.Session != null)
{
int int_MilliSecondsTimeOut = (this.Session.Timeout * 60000) - 30000;
string strScript = @"
";
this.Page.RegisterClientScriptBlock("Reconnect", strScript);
}
}

And create reconnect.aspx page, add the following code to the page.

<%@ OutputCache Location="None" VaryByParam="None" %>


Let me know for further queries.

Regards,
Poornima

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;