Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 20, 2012 08:43 AM by DMW
Feb 09, 2012 01:17 PM|LINK
we manage a website structured in a web-farm. We have 2 machines (WEB01 and WEB02 where the application is running) under load balancer and a third server (DEV) out from the LB.
We followed these instructions http://msdn.microsoft.com/en-us/library/ms178586(v=vs.100).aspx
All the machines are connected with an internal LAN and all the ports are open for this connection. Server DEV has been choosen as
StateServer, his internal IP is 192.168.0.6
Both web.config have the following configuration
<sessionState mode="StateServer" cookieless="false" stateConnectionString="tcpip=192.168.0.6:42424" timeout="120" />
<machineKey validationKey="B610C6501302E3D83B23D9F885146B6CCCB3AF7CC39AB9FAD1DA59B1510229B6DD1BA60AD58D6C962374CBFED9341999991ED4B6CE16A97A35CA33F730716DBB" decryptionKey="AC53B7342C134E0DAE9C5636A828EF76A26CD4256C19F254AAFD741AC0D5FFED" validation="MD5" decryption="AES" />
On StateServer we activated ASP.NET State Service correctly, we edited the registry key
setting to 1 the value AllowRemoteConnection
The sistem does not display any kind of error BUT
the session is not shared, every machine has his own session!
If I log-in in WEB01 I can navigate while the balancer move me to WEB01, but if the balancer move me to WEB02 I must re-log-in. Did I miss something? Please help me!
We also try to follow this guide but nothing changed: http://support.microsoft.com/kb/325056/en-us
I'll wait news from you.Thanks a lot. Best regards.
Feb 15, 2012 04:16 AM|LINK
instead of configuring state server on your virtual server (DEV) configure the state service on WEB01 or WEB02. And update its reference in both web.config files. It will solve your problem.
Feb 17, 2012 07:43 AM|LINK
Thank you for your reply,
We moved the state service on WEB01 configuring web.config like this:
We tried to delete alla temporary IIS files,
but unfortunately nothing changed, every machine has his own session.
Is there something else we can do?
Feb 20, 2012 08:43 AM|LINK
but if the balancer move me to WEB02 I must re-log-in
Is your problem to do with Session or security?
Do you mean that you get a different Session object, or that your forms authentication ticket is no longer valid? Obviously, the state server has nothing to do with security.