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.
alex_brambil...
Participant
798 Points
285 Posts
session out of sync
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.
-Web.config includes:
<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.
ignatandrei
All-Star
137716 Points
22159 Posts
Moderator
MVP
Re: session out of sync
May 09, 2012 07:07 PM|LINK
store the session on sql server
http://support.microsoft.com/kb/317604
alex_brambil...
Participant
798 Points
285 Posts
Re: session out of sync
May 10, 2012 03:16 PM|LINK
Thanks but apparently you missed the 2nd sentence: Session state is on sql server.
ignatandrei
All-Star
137716 Points
22159 Posts
Moderator
MVP
Re: session out of sync
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?
Andrei