This project is read-only.

Prevent multi sign in with same user name at same time

Topics: Administration, Core, Customizing Orchard, General, Writing modules, Writing themes
May 18, 2014 at 12:37 PM
How can i prevent to sign in with same user name more than one user at the same time?
May 18, 2014 at 9:34 PM
You have to keep track who is signed in (you can use IUserEventhandler to catch when somebody signs in, though this won't help if the user has selected "remember me"), then use IUserEventhandler to prevent a new sign on. It's a lot of stuff to do and I'm not sure you can be entirely sure if anybody is signed in "currently" already: even if you e.g. track any activity of a signed in user it can be that they just closed their browser for a second and then want to come back to log in again. How do you determine whether they're signed in already?
May 19, 2014 at 7:35 AM
Thank you so much. I am forced to implement this feature.
May 19, 2014 at 7:54 AM
@Piedone Thank you. It seems there is no clear way to implement this.