G
Guest
I have made an ASP.NET web application that connects to SQL Server, reading
and writing data using classes. I was recommended to use session objects to
store the data per user, because each user using the application needs to see
their own data only. My problem is that when multiple users are in the
application, when in the session object, data is fine, however as there is
only one instance of the class files, when data is put into them, every
user's data is mixed. Can classes be used with ASP.NET for this purpose? If
so, how?!? I'm confused because in Windows applications each user has their
own executables and class files locally, however in a web application, each
user uses the same class files - are they replicated in memory or is there
only the one set of class files? If the latter then surely they will always
be overwritten.
Any help would be great, thanks
For my original problem and the resulting solution, please search on this
string:
"Problem with asp.net app only allowing 1 user"
and writing data using classes. I was recommended to use session objects to
store the data per user, because each user using the application needs to see
their own data only. My problem is that when multiple users are in the
application, when in the session object, data is fine, however as there is
only one instance of the class files, when data is put into them, every
user's data is mixed. Can classes be used with ASP.NET for this purpose? If
so, how?!? I'm confused because in Windows applications each user has their
own executables and class files locally, however in a web application, each
user uses the same class files - are they replicated in memory or is there
only the one set of class files? If the latter then surely they will always
be overwritten.
Any help would be great, thanks
For my original problem and the resulting solution, please search on this
string:
"Problem with asp.net app only allowing 1 user"