Reputation: 8876
I need to know the procedure to use asp.net session state server for session.
Please help.
Upvotes: 2
Views: 835
Reputation: 43207
Here's a very good article on Code Project which will step-by-step guide you how to do this..
http://www.codeproject.com/KB/aspnet/ExploringSession.aspx
Upvotes: 2
Reputation: 2702
You need to:
Add the following entry to your web.config file:
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="UseCookies" timeout="10" regenerateExpiredSessionId="true" />
Configure the values in the above entry according to this
Note that if you used to use the inProc sessions before, you will not be able to store non serializable objects in session anymore.
Upvotes: 2