SQL Server Session Management Mode in .NET
page 2 of 8
by Sandeep Acharya
Feedback
Average Rating: 
Views (Total / Last 10 Days): 34130/ 69

How to use SQLServer Session management mode?

If Session management mode is SQL Server, then all the sessions and session variables are getting stored in a SQL Server. To make this type of session management active we need to do the following changes in Web.Config.

We need to modify the sessionState mode = "InProc" to "SQLServer."

We need to give the appropriate connection string for the SQLServer: [sqlConnectionString="data source=127.0.0.1;user id=sa; password=xxxx"].

We also need to create the DB structure, which will actually hold our sessions and session variables. For that we need to perform the following step.

Find the InstallSqlState.sql file at [system drive\ Windows\ Microsoft.NET\ Framework\version\].

Run this script for the SQLServer that is going to maintain the session.

This script will create the necessary DB structures to maintain the session in the SQL Server.

Now it is all ready to use the SQL Server Session management.


View Entire Article

User Comments

Title: SerializeData list arrays   
Name: Sachin Kulkarni
Date: 2009-05-18 5:05:50 AM
Comment:
Hi,
I read the article it is very good information. I have just one question does the SerializeData function Serialize the system.collection objects too. As you are using the .Net Serialize method.
If not how can I do it?

Thanks in advance,
sachin
Title: SQL Server Session Management Mode in .NET   
Name: Ravikumar Bhuvanagiri
Date: 2009-02-13 11:41:18 AM
Comment:
This Article is very usefull.






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-05-11 8:27:20 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search