asp.netsql-serversessioniissticky-session

.Net Session for load balanced Servers


I have LoadBalanced WebServers in .Net. When a user logs in into the website, we are not sure if his next request goes to the same webserver. So will storing asp.net session in SqlServer DB solve the issue of recognizing the user when request switches between servers .


Solution

  • As per below link, OutProc session is suitable for Load balanced servers. https://www.c-sharpcorner.com/forums/inproc-session-state-out-proc-session-state-in-asp-net