Article ID: 324772 - Last Review: April 18, 2007 - Revision: 2.7 PRB: Session Data Is Lost When You Use ASP.NET InProc Session State ModeThis article was previously published under Q324772 SYMPTOMS Session data for ASP.NET Web applications appears to be
lost at random intervals for the InProc session state mode. CAUSE Session state data is lost if the AppDomain or the
Aspnet_wp.exe process
(or the W3wp.exe process, for applications that run on Microsoft Internet Information Services [IIS] 6.0)
is recycled. Generally, the AppDomain is restarted based on several factors:
RESOLUTION To work around this problem, you can use StateServer or
SqlServer session state mode. ASP.NET provides these other approaches for
storing session state data. In the StateServer and SqlServer modes, your
session state is not stored in the AppDomain of the Web application. Note It is important to understand the behavior and the issues that are associated with each session state mode when you decide which mode is appropriate for your requirements. For more information, see the "References" section of this article. STATUSThis
behavior is by design. REFERENCES For more information about ASP.NET session state management
and other related topics, visit the following Microsoft Web site:
Session State For additional information, click the article number below
to view the article in the Microsoft Knowledge Base: http://msdn2.microsoft.com/en-us/library/87069683(vs.71).aspx?frame=true (http://msdn2.microsoft.com/en-us/library/87069683(vs.71).aspx) 307598
(http://support.microsoft.com/kb/307598/EN-US/
)
INFO: ASP.NET State Management Overview
For more general information about ASP.NET, see the
following Microsoft Developer Network (MSDN) newsgroup: microsoft.public.dotnet.framework.aspnet
(http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?query=microsoft.public.dotnet.framework.aspnet+&dg=&cat=en_US_d02fc761-3f6b-402c-82f6-ba1a8875c1a7&lang=en&cr=&pt=&catlist=&dglist=&ptlist=&exp=&sloc=en-us)
| Article Translations
|
Back to the top
