c# - Variable in a page, is it shared? -


basically have 1 set of admin pages. can use session variable each users guid, make sure edit proper db information.

if there 5 people editing page uses example arraylist, arraylist shared people editing it, or each version of page have own local arraylist? need make session variables of kind data not mixed of other users?

in asp.net. page rendered every time ask to. if create arraylist inside, alive particular page render cycle. lost page rendered.

using static variables inside page keep variables alive bad idea since keep alive on sessions. regular variables gone page render cycle ended. if want persist data user's session only, use httpcontext.current.session object save session state.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -