Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Recommended limits for ConnectionTimeout and ScriptTimeout when using ASP

Posted on 2007-10-12
Medium Priority
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

flipz earned 1500 total points
ID: 20068462
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.

Expert Comment

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


Author Comment

ID: 20068789
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
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.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

571 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