Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Programming Languages
.NET
Using Static Variables for storing Shopping Basket Items
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="sam.thescorpions, post: 3861189, member: 57847"] 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.. [/QUOTE]
Verification
Post reply
Forums
Programming Languages
.NET
Using Static Variables for storing Shopping Basket Items
Top