Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

ASPState Session Sharing IIS 7.5 SQL

$
0
0

Okay I have 2 web servers running Windows Server 2008 R2 Web Server Edition and .NET 4.0. These servers are www1.contoso.com and www2.contoso.com. They both are configured in round-robin DNS forwww.contoso.com. My users are complaining that when they login towww.contoso.com they are asked to login again after XX minutes (always random). I've discovered this happens when the round robin points them to a different server than which they originally logged into. (ie. login towww.contoso.com (pointing to WWW1) and click around then DNS points you to WWW2 and your session is lost). 

So to remedy this I introduced ASPState sharing via SQL database. I have a SQL server set up that is running the ASPState database and I've configured both web servers to use that databse for session. In the database ASPState I can see that there are sessions in ASPStateTempSessions from both WWW1 and WWW2 so they are both writing session data to the database. However they are not sharing sessions because the issue still persists. 

I've checked that my Machine Key's are the same on both servers, the site ID's are the same, and the website names/AppPool/Path's are the same, but still no luck. 

Please help I'm going crazy trying to figure this one out.

Thank you! 


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>