Article ID: 316148 - Last Review: February 23, 2006 - Revision: 4.3 PRB: Session variables are lost intermittently in ASP.NET applicationsThis article was previously published under Q316148 On This PageSYMPTOMS
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:
STATUSThis behavior is by design. MORE INFORMATIONSteps to reproduce the behaviorNote This sample assumes that your Web application stores session data in-process (which is the default behavior).
REFERENCES
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
303881
(http://support.microsoft.com/kb/303881/
)
PRB: Session variables are lost in ASP Web applications
317604
(http://support.microsoft.com/kb/317604/
)
How to configure SQL Server to store ASP.NET session state
871042
(http://support.microsoft.com/kb/871042/
)
Why is my ASP.NET application restarting?
| Article Translations
|
Back to the top
