How to use public server for session in asp.net 2.0

I need to know the procedure for using an asp.net session state server for a session.

Please, help.

+2


source to share


2 answers


You need:

  • Start the session window stat service
  • Add the following entry to your web.config file:

    <sessionState mode = "StateServer" stateConnectionString = "tcpip = 127.0.0.1: 42424" cookieless = "UseCookies" timeout = "10" restoreateExpiredSessionId = "true" />

  • Adjust the values ​​in the above entry according to this



Note that if you've used inProc sessions before, you will no longer be able to store non-serializable objects in the session.

+2


source


Here's a very good article in the Code Project article that guides you step by step how to do it.



http://www.codeproject.com/KB/aspnet/ExploringSession.aspx

+2


source







All Articles