Tuesday, May 16, 2017

How to change web.config without loosing session

In application  by default we have InProc session state and due to this our session is stored in application memory that's why when we change web.config, it lost session also.

sessionState mode="InProc" timeout="30"

To overcome this  problem use "StateServer" session state. It stores application session in server memory where our application is hosted.

sessionState mode="StateServer" stateConnectionString="tcpip=" timeout="30"


No comments:

Post a Comment