![]() |
Web Development »
ASP.NET »
General
Intermediate
Sharing session state over multiple ASP.NET applicationsBy SampoSoftThis is an article that explains how to share session variables over multiple applications. |
.NET 1.0, .NET 1.1, Win2K, WinXP, Win2003, ASP.NET, Visual Studio, Dev
|
||||||||
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||
I have modified the SQL script that create the SQL Server Database for storing the ASP.NET session state.
In web.config you must change the sessionState from "InProc" to "SQLServer" and specify the correct SQL connection string.
<!-- SESSION STATE SETTINGS By default ASP.NET uses cookies to identify which requests belong to a particular session. If cookies are not available, a session can be tracked by adding a session identifier to the URL. To disable cookies, set sessionState cookieless="true". --> <sessionState mode="SQLServer" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
I have added a table named ASPStateApplications that can be used to set the applications that share the session state.
| You must Sign In to use this message board. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 11 Sep 2003 Editor: |
Copyright 2003 by SampoSoft Everything else Copyright © CodeProject, 1999-2009 Web19 | Advertise on the Code Project |