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

Time:04-18

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?

CodePudding user response:

  • Try to get some debugging proxy (burp, charles,...)
  • Check firewall rules

For more info look at: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-asp/83f6b453-c695-419c-998b-0aa50279bc40

CodePudding user response:

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.

  • Related