Store and Retrieve Session Information using C# and ASPState DB

N

niftyhawk

Hi,

How do I store and retrieve session state information using C# and
ASPState SQL Server Database?

Thanks
 
N

Nicholas Paldino [.NET/C# MVP]

niftyhawk,

You can set the mode attribute on the sessionState element in your
web.config file to "SQLServer" to indicate you should use SQL Server.

This places the limitation of everything that you store in the session
must be serializable. Also, you will have to make sure that you set up the
SQL server correctly (I believe there is a utility in the framework
directory that will do this for you).

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top