Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Session timeout
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Session timeout

 Post Reply Post Reply
Author
sisc View Drop Down
Newbie
Newbie


Joined: 30 March 2011
Location: United Kingdom
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote sisc Quote  Post ReplyReply Direct Link To This Post Topic: Session timeout
    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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
sisc View Drop Down
Newbie
Newbie


Joined: 30 March 2011
Location: United Kingdom
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote sisc Quote  Post ReplyReply Direct Link To This Post Posted: 17 January 2012 at 11:40am
Thanks very much. Will give it a try.
Mark
Back to Top
sisc View Drop Down
Newbie
Newbie


Joined: 30 March 2011
Location: United Kingdom
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote sisc Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 17 January 2012 at 3:56pm
Please can you create a support ticket so that this can be investigated?

Back to Top
sisc View Drop Down
Newbie
Newbie


Joined: 30 March 2011
Location: United Kingdom
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote sisc Quote  Post ReplyReply Direct Link To This Post Posted: 17 January 2012 at 4:07pm
OK, have done.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.