Is the default ASP.net session used?

I am creating an application using session variables. I created the HistoryLine class and the other a HistoryLineCollection with the HistoryLine list. Then I save an instance of HistoryLineCollection for the session as follows:

Session ["HistoryLines"] = hLines;

The problem is that when I watch it on another computer, I see the same list! I was thinking about sessions where the client is unique? I looked at sessionState and maybe SessionID is cloned or something like that, but I just can't see it. Does anyone have an idea?

+3
source share
3 answers

, asp.net . - , (, -). , cookie, Url. . , , , -, .

+1

, - (aka shared)?

+1

Check the code that creates the list to enter into the session. You are probably creating the same list for each session.

0
source

Source: https://habr.com/ru/post/1703599/


All Articles