Preventing multiple simultaneous inputs

I am trying to prevent multiple simultaneous logins in my web application. I want to display all / any previous user authentications at login. So the current login remains the only one.

How do I contact FormsAuthentication.SignOut () for a specific user to invalidate any existing authentications.

I tried to search everywhere, but there are no answers, only theories.

+3
source share
1 answer

Well, I ended up using application state to store the last user session and check on the main page to see if the session id matches. If not, the user will be discharged.

.

+2

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


All Articles