Store and Retrieve Session Information using C# and ASPState DB

  • Thread starter Thread starter niftyhawk
  • Start date Start date
N

niftyhawk

Hi,

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

Thanks
 
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.
 
Back
Top