Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2010-08-23
6
Medium Priority
?
556 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 2000 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
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

972 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