0
votes

We have 3 servers: Server_web1,Server_web2 and Server_ngix. An asp.net application is installed on the servers Server_web1 and Server_web2 The server Server_ngix processes client requests and executes round-robin load balancing enter image description here

The session state is stored in the data base (it's configured in according with the article)

aspnet_regsql -d SessionStateDb -ssadd -S msserver -U sa -P 1 -sstype c

My web.config

enter image description here enter image description here

The problem is that two sessions are created for one client: SessionId1 on the server Server_web1 and SessionId2 on the server Server_web2, but one session is needed for each client.

enter image description here

1

1 Answers

0
votes

Create session by userId too which means store in database, restrict while creating new session until it expires.