Hi, I have a web farm configuration with two servers running Windows Server 2003 and IIS 6.0, I'm using NLB. For my asp.net applications I'm using a state server so I've configured my apps to use StateServer Mode.
The problem is that every server in the farm is creating its own set of session variables for the same session/user. I verified that each server can read/write session variables in the state server, the problem is when a request is handled by a server (server B), that is not the server that handled the previous request (server A). In this case, the server B creates a new session. The fact is that I can have two sets of session variables, and the values that I saved when my request is on server A are different of the values when my request is on server B.
I already set the machineKey element in machine.config to use the same keys in both servers:
<machineKey validationKey="12ABC432...." decryptionKey="FA45EE..." decryption="3DES" ... />
I also configured the sessionState of my application to use the state server:
<sessionState mode="StateServer" stateConnectionString="tcpip=10.6.6.54:42424" ... />
I also checked that the application paths and instance ids of the web sites in both servers are the same, and they also are in upper case: i.e. LM/W3SVC/1/ROOT ....
I also verified that the session ids generated by both servers are the same.
I don't know what else to check.
Please, if somebody can help me with this.