Solved

session timing out too soon - IIS 6, ASP.NET application

Posted on 2010-08-23
6
542 Views
Last Modified: 2012-05-10
I have an ASP.net application running on Windows Server 2003.  My application seems to time out after only 20 minutes of inactivity.

I have set the Web.config as follows:
<sessionState stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
   cookieless="false" timeout="125" />

I have also set the Session Timeout in the web properties to 120 minutes.

The Application Pool is set to recycle only at 5:00 am.
Under the Performance tab, Shutdown idle worker processes = 120 minutes

This is causing a lot of problems for my users and they are about to start throwing things! :)
I have ready a lot of other posts, but nothing seems to work for me.
Urgent help needed.  Thanks!
0
Comment
Question by:lanier3532
  • 2
  • 2
  • 2
6 Comments
 
LVL 5

Accepted Solution

by:
tvPrasad earned 500 total points
ID: 33502539
If you want to change the timeout value to be longer, you can easily change the timeout value in your local web.config file (the timeout value is in minutes):

<system.web>
    <authentication mode="Forms">
          <forms timeout="50000000"/>
    </authentication>
</system.web>

Hope this helps
0
 

Author Comment

by:lanier3532
ID: 33502790
thanks.  I'll give it a try.  I've set mine to 240
0
 
LVL 2

Expert Comment

by:MatrixDweller
ID: 33503285
I thought the timeout value was in seconds, so setting it to 125 is going to be 2 minutes and 5 seconds.

You also have to set it in IIS. See this thread for more information on the subject.
http://forums.asp.net/t/1283350.aspx
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 2

Expert Comment

by:MatrixDweller
ID: 33503318
My bad it is minutes. You'll still need to set it in IIS.
0
 
LVL 5

Expert Comment

by:tvPrasad
ID: 33503425
HI,

One more point... make sure you are using the correct Application pool.

Thanks
0
 

Author Closing Comment

by:lanier3532
ID: 33541581
Working great now.  Thanks!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

786 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