Sql Server Session State Issue

I am developing a shopping cart website.

The problem is that when I add product items to my shopping cart and another user on another computer views the shopping cart, I get my cart details!

We have our site in a web farm, so the session state is stored in the Sql server. This is the first time I am setting 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" />

      

Did I miss something? Many thanks.

+2


source to share


2 answers


Session state is processed on a per-browser instance basis, whether it is InProc or not. You have other problems.



+2


source


Neil and Rick, thanks for your answer. The problem is not session state. It was a static class stored with values ​​moved around and caused this confusion.



0


source







All Articles