Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 10, 2012 09:07 PM by ignatandrei
May 09, 2012 05:18 PM|LINK
I have a vs2010 app running in a two server farm (servers are running Windows Server 2008 Web). Session state is on sql server. I'm having an issue with session state getting out of sync. I'm setting some values in one page and in another the session
current values aren't shown. I've got to refresh the page several times to get the correct values. Seems like it might be a threading issue. I don't see a .Lock() method on session state. What's the fix/workaround?
Some additional info...
-app resides on a file share that both servers point to.
<machineKey validation="SHA1" validationKey="A1B1C1D1E7F7F6E9D4C9B2A1A0B0C3D4E5F6......" decryption="3DES" decryptionKey="C1C2C3D4E5F6F6E5D4..." />
<sessionState mode="SQLServer" sqlConnectionString="server=172.16.xxx.xx;user id=xxxxxx;password=xxxxx" cookieless="false" timeout="20" />
-There's also a load balancer in use.
May 09, 2012 07:07 PM|LINK
store the session on sql server
May 10, 2012 03:16 PM|LINK
Thanks but apparently you missed the 2nd sentence: Session state is on sql server.
May 10, 2012 09:07 PM|LINK
I'm sorry. Yes, I have missed that. In that case, the behaviour is unusual. Could you replicate it?