A production server or SQL server should work. At least for http. The Https request may need to end at the same IP address ... Not sure about that.
You can also use a hardware load balancer / switch that supports sessions. They send the initial request from the user to the server, and the following requests from this user are always sent to the same server. (or they try)
To exchange sessions for only one web application, but to share sessions between applications, what I do at my work is to use classic asp sessions (to support legacy, but asp.net is also valid) when the user logs in , they are created on asp, and they are read from a file named session.asp (the name does not matter) that the file returns values ββwhen called from .net, which executes a web request.
For example: session.asp? session_name = the username is called from any local .net application and answers "John", so "John" is inside the session ["session_name"] and session.asp (or aspx, php or something else you want) just writes the text in answer.
I'm not sure if this is clear ... This is a dirty and easy way to do it. At my company, we use it for approximately 300 concurrent users who have tons of sessions each, and seem to work very nicely. Hope it helps .; -)
source share