How is class data shared among web clients

MattNorman

Well-known member
Joined
May 22, 2021
Messages
76
Programming Experience
1-3
Can anyone give me some advice on if and how data stored in classes is shared between web clients?

I am in the process of completing a course on asp.net MVC and in the course they are storing user data in a static class after the user logs in.

Would the data stored in that static class be unique for another web client session or would they see the same data?

Also would a separate browser on the same PC count as a second session or would they count as one session? I have been doing this to test however I'm not sure if I need two different machines with different IP's.
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
4,646
Location
Sydney, Australia
Programming Experience
10+
When you use two different browsers on the same machine, do you see the same data or different data? If you see the same then don't know but if you see different data then you already have your answer to both questions.
 
Top Bottom