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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

session timeout

Thread ID:

Created:

Updated:

Platform:

Replies:

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

i just want to prevent session timeout

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

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.

Warning Icon 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.Close Icon

;