Nelviticus
Programmer
I have an application that lets users edit various details of our clients. When the app starts it reads a list of clients from an SQL database and stores this in a global session variable so that it can be displayed quickly when needed.
However, if another user adds a new client to the database the person using my app won't see it in the client list for a while, because when they view the client list they aren't viewing the 'live' one but the stored one.
If a third user starts my app just after the new client has been added they also cannot see the new client, because they are viewing the list that the first user stored in the session.
So, how long do session variables last for and who do they apply to? As you can guess I'm quite new to this. I'm using C# code behind the pages and I use 'Session.Add(VariableName, Value)' to store the list. It seemed like a good idea at the time!
Nelviticus
However, if another user adds a new client to the database the person using my app won't see it in the client list for a while, because when they view the client list they aren't viewing the 'live' one but the stored one.
If a third user starts my app just after the new client has been added they also cannot see the new client, because they are viewing the list that the first user stored in the session.
So, how long do session variables last for and who do they apply to? As you can guess I'm quite new to this. I'm using C# code behind the pages and I use 'Session.Add(VariableName, Value)' to store the list. It seemed like a good idea at the time!
Nelviticus