PRB: Session variables are lost intermittently in ASP.NET applications (316148)
The information in this article applies to:
- Microsoft ASP.NET (included with the .NET Framework 1.1)
- Microsoft ASP.NET (included with the .NET Framework) 1.0
This article was previously published under Q316148 SYMPTOMS
Session variables may be lost intermittently in Microsoft ASP.NET applications.
When this problem occurs on a Microsoft Application Center 2000 cluster, the sessions will drop on the controller when antivirus software scans the Web.config or the Global.asax files. The scan will trigger a replication, causing sessions to be lost on each member server in turn as the file is replaced.
CAUSE
There are many possible causes for this problem. This article addresses one possible cause: session data that is lost because of antivirus software activity.
This problem can occur when antivirus software scans the Web application files. During the scanning process, the antivirus software may mark the Global.asax, the Web.config, and/or the Machine.config files as modified. This modification prompts the Microsoft .NET Framework restart the Web application. If the session data is stored in-process, all session data is lost whenever a Web application is restarted.
RESOLUTION
To resolve this problem, use one of the following methods:
- Configure your antivirus software so that it does not scan .asax and .config files.
- Contact the antivirus software manufacturer for instructions.
- Configure your Web application to store session data out-of-process.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
307598
ASP.NET state management overview
STATUSThis behavior is by design.REFERENCES
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
303881
PRB: Session variables are lost in ASP Web applications
317604 How to configure SQL Server to store ASP.NET session state
871042 Why is my ASP.NET application restarting?
Modification Type: | Major | Last Reviewed: | 2/23/2006 |
---|
Keywords: | kbCaching kbConfig kbprb kbState kbSysAdmin KB316148 kbAudDeveloper |
---|
|