Problems with Session distinction when two people log with the same user

Asked

Viewed 42 times

0

I have a session problem in a project where I use C# and ASP.NET. If two people log in at the same time with the same user the section variables get the same values. To be sure I took the ID of the created sections and they are differences so I can’t make a value of one section not interfere with the other.

Does anyone have any idea?

  • You can each time you log in to generate a new token for the session, if a request comes with a different token than the current one, you direct it to the login page.

  • Could you share a piece of code so we can try to help?

1 answer

0

You can create an id using the machine ip or even browser identification information, and you can turn this information into a single MD5 for each connection.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.