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

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -