Recommended limits for ConnectionTimeout and ScriptTimeout when using ASP

Posted on 2007-10-12
Last Modified: 2010-04-18
How long should I keep the session active when setting it in the global.asa?  20 minutes, 1 minutes, 60 minutes, etc?  Im just wondering if there are any industry standards or recommendations on ConnectionTimeout and ScriptTimeout.  Im on a small Windows 2003 Server, ASP-driven Intranet with about 300-400 users, max, and Id like to keep it running as smoothly as possible.  
Question by:soBC
    LVL 11

    Accepted Solution

    I wouldn't say there is an industry standard for this - I think it all depends on your application. If the users of the website will be using it regularly throughout the day - then set the Connection timeout a little longer. If they are only in and out every once and awhile - shorten it a little. We've left the the IIS defaults in place originally but when some of our clients complained about being kicked out too ofter - we increased it by 20 minutes or so.

    I wouldn't change the ScriptTimeout though. If there is an error on a page (say and infinite loop) then the page is going to execute until the timeout is up - using up your resources.
    LVL 4

    Expert Comment

    Completely agree with flipz, it depends on your users and what they are doing.


    Author Comment

    Our users are mostly looking at data.  Perhaps 10 users are updating data.  The database is SQL Server Express.  

    Right now, I've got the ConnectionTimeout at 5 (minutes) and the ScriptTimeout at 30 (seconds).  I think the idea was...close the sessions as soon as possible so that you dont bog things down with a lot of open sessions or open database connections.  But I dont know if shortening (or lengthening) the ConnectionTimeout would have any effect on performance or not.  Im basically guessing, but if it didnt matter then I'd increase the ConnectionTimeout to 20 or more.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
    Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
    This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmakerā€¦
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now