- Joined
- May 16, 2009
- Messages
- 1
- Reaction score
- 0
Hi..
I am wrking on Asp.net 3.5, C#... This is regarding session management. now i am into commerce website development. In this website, i am using one shopping cart. when the user clicks on item, am storing it in local STATIC global variable. I am not using session here.
If i use local variable(non-static) , i am not getting those values correctly across different scopes of .cs file.. so i decided to use STATIC variable..it works fine..
bt i am afraid, tht when concurrent users accessing the same page, what will happen to those static variables.. is this user specific or remains same for all the users.. if it remains same for all the users, am into deep trouble here.. please help me out.. am very new to sessions and shopping baskets.. is there any way out to come out of this problem without using sessions n sticking with those local staic variables... coz lot of coding already done..recoding will cost me dear..
I am wrking on Asp.net 3.5, C#... This is regarding session management. now i am into commerce website development. In this website, i am using one shopping cart. when the user clicks on item, am storing it in local STATIC global variable. I am not using session here.
If i use local variable(non-static) , i am not getting those values correctly across different scopes of .cs file.. so i decided to use STATIC variable..it works fine..
bt i am afraid, tht when concurrent users accessing the same page, what will happen to those static variables.. is this user specific or remains same for all the users.. if it remains same for all the users, am into deep trouble here.. please help me out.. am very new to sessions and shopping baskets.. is there any way out to come out of this problem without using sessions n sticking with those local staic variables... coz lot of coding already done..recoding will cost me dear..