Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SessionState mode=
Message
From
22/02/2005 07:40:32
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00987221
Message ID:
00989172
Views:
50
Hi Carl,

SQLServer -> Indicates that session state is stored on the SQL Server.

You need to do the following to use SQLServer mode

(1) Run InstallSqlState.sql (installed by default in :\systemroot\Microsoft.NET\Framework\version) on the computer running SQL Server that will store the session state. This creates a database called ASPState with new stored procedures and ASPStateTempApplications and ASPStateTempSessions tables in the TempDB database

(2)In the application's Web.config file, set mode=SQLServer and set the sqlConnectionString attribute. For example, sqlConnectionString="data source=localhost;Integrated Security=SSPI;Initial Catalog=northwind".

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfsessionstatesection.asp

ALSO CHECK THIS SETTING IS SQL:
If you are going to use Windows Authentication, then the SQL Server needs to
know about the IUSER account, which it doesn't by default since that is a
local account on the web server.

As a general rule of thumb you should create a seprate account to run the
web app the has rights to the app and the sql server and is locked out of
everything else. If you give IUSR or IWAM access then every request from any
site that you have will have access to the data in your SQL Server, not just
the one application.


HTH.

Alvin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform