Sql server session state problem
I am developing a shopping cart website.
The problem is, when I add product items to my shopping cart and another user in another computer browses the shopping cart, suddenly has my cart details!!.
We have our site on a web farm, hence session state is held in Sql Server. This is the first time I am setting up SessionState on Sql Server.
In my web.config I have this,
<sessionState
mode="SQLServer"
sqlConnectionString="data source=someip;user=someuser;password=somepassword"
cookieless="false"
timeout="20" />
Am I missing any thing? Help much appreciated开发者_如何学Go.
Session state is handled on a per browser instance basis whether InProc or not. You have some other issue going on.
Neil and rick, thanks for your response. The problem was not in session state. It was a static class stored with values was moving around and causing this confusion.
精彩评论