Hello guys. Believe it or now, i have just found that that static objects in classes (pages) hold the same value for that same page even with two different users logged in.
I have a page where the user fills the name and id of a customer (page a) for example and then puts it inside the user session, redirects to page b and on that page writes a report based on that customer and saves it to the database.
We are getting reports that when the first user saves the report, the values of the second user gets saved.
My question is, how to handle the user's data without using static objects inside classes? The click method of button just passes the sender and event arguments, so i cannot pass for example a DataTable through it, and i only use session variables to store information that has already being validated just before sending the user to the next page.
That's why i used static objects, so methods like click inside of buttons could access the data.
Is the only way to do this is to store objects (like a DataTable in my example) in the user's session and then retrieve, update and put it back in the session each time i need to use it? I always though the user's session should be as small as possible.
View Complete Post