Print Page | Close Window

Session timeout

Printed From: Web Wiz Forums
Category: Web Wiz Hosting Services Forums
Forum Name: Web Wiz Hosting Support Forums
Forum Description: Support forum for Web Wiz Hosting services and solutions.
URL: https://forums.webwiz.net/forum_posts.asp?TID=30121
Printed Date: 28 March 2026 at 7:15am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Session timeout
Posted By: sisc
Subject: Session timeout
Date Posted: 17 January 2012 at 10:24am
Good morning.
I have an ASP.Net site that is having session timeout issues, after 10 minutes. The site is www.mymartrainme.co.uk - the site is used to download training files. After a download has taken place (user has to validate themselves first) the user will read training material then return to site to download again. 10 mins not long enough.

The web.config has timeout specified as follows:

<authentication mode="Forms">
<forms timeout="50"/>
</authentication>

<sessionState timeout="60"  />

I am guessing that the Application pool idle or recycle is overriding this. I don't think I can change the App Pool myself, but is it possible to have this 'upped'?

Thanks



Replies:
Posted By: WebWiz-Bruce
Date Posted: 17 January 2012 at 11:19am
Session time outs and Application Pool Idle Timeout on a paid hosting packages are all at the IIS 7 default of 20 minutes.

I have checked your website and see that you have increased the Session Timeout to 60 minutes and the  Application Pool Idle Timeout is set to the default 20 minutes.

To give your visitors a longer time to read your training material I have adjusted your ASP.NET settings for your website to use the Session State Server with a session timeout of 30 minutes. This means that even if the application pool for your website recycles due to lack of activity the session is running out of process in the Session State Server and so would not be dropped for 30 minutes after the last activity.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: sisc
Date Posted: 17 January 2012 at 11:40am
Thanks very much. Will give it a try.
Mark


Posted By: sisc
Date Posted: 17 January 2012 at 3:45pm
Hi. I still seem to be getting session dropped at round about 6 minutes. It's fine at 5 mins, but dropped at 6.

I have created a simple web app at www.pidleynet.com (on WebWiz) to demonstrate. This creates a session variable on startup, then allows to check whether it is still current at timed intervals. As with the other site, it seems to drop out at 6 minutes.

Web.Config as follows:

<authentication mode="Forms">
<forms timeout="50"/>
</authentication>
<sessionState mode="StateServer" timeout="30" />

Global.asax as follows:

    void Session_Start(object sender, EventArgs e) 
    {
        Session.Timeout = 30;
        Session["TestSession"] = "0";
    }

Any suggestions would be welcome! Cry



Posted By: WebWiz-Bruce
Date Posted: 17 January 2012 at 3:56pm
Please can you create a support ticket so that this can be investigated?

http://www.webwiz.net/clientarea/support-portal/" rel="nofollow - https://www.webwiz.net/clientarea/support-portal/


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: sisc
Date Posted: 17 January 2012 at 4:07pm
OK, have done.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net