Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Session loss; IIS 7

Posted on 2013-06-04
1
308 Views
Last Modified: 2013-07-01
I am having issues with session loss.  This is on a Windows 2008 r2 server with iis 7.5.  The sessions are stored 'in-proc'.

I can't reproduce the problem on demand, but it seems to occur for about 30 minutes to an hour around the same time of day when it happens (doesn't happen on the same days).  When the problem happens, the sessions can be lost in a few seconds to several minutes.

In the past I had session loss problems, but this was related to the app pool being recycled.  I fixed this issue by changing the recycling settings in IIS (I have not changed the default value in web.config).  I don't believe this problem is caused the the app pool recycling, because when the issue begins, i open task manager on the server and watch the worker process.  The PID never changes and the cpu / memory use stays within a reasonable range.

I thought the issue might be related to the anti-virus software, but the scheduled scan time is not during the time when i typically see this problem occurring.

I also checked to make sure the web.config, files in the app folders are not being changed by someone.  I check the date modified value on those files and those times don't coincide with the session loss.

Any ideas?
0
Comment
Question by:jbodager
1 Comment
 
LVL 1

Accepted Solution

by:
jbodager earned 0 total points
ID: 39290920
This link (http://blogs.msdn.com/b/tess/archive/2006/08/02/asp-net-case-study-lost-session-variables-and-appdomain-recycles.aspx) had two suggestions that helped me solve the problem:

1) using the performance monitor to check the application restart counter.
2) use health monitoring events to log application restarts.

After setting up the logging, I found out that the cause of the issue was an application that was creating / deleting folders on the website.  I did not realize that creating / deleting any sub-directories would cause this issue.  I thought it was only related to the ASP .NET folders.  So the fix I used was:

http://dot-net-web-developer-bristol.blogspot.com/2010/04/disabling-file-change-notification-fcn.html
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

856 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