Search code examples
c#asp.netweb-config

ASP.Net SessionState works when set to InProc but fails when set to StateServer


When allowing the SessionSate to remain in it's default state ie InProc, my website works fine after callbacks etc. When I change it to:

<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" timeout="10" />

SessionSate is lost after callback.

The ASP.Net State Server service is working fine so what else should I be checking?


Solution

  • There were no issues in the code-behind however there was an issue with a popup window javascript which called localStorage to store session data. Once I removed the call to localStorage all worked fine.

    Thanks to @wp78de for heading me in the right direction.