Prevent multiple users with same ID at the same time

Prevent multiple users with same ID at the same time

by Peshali Randika -
Number of replies: 2

Hi All ,

I am  trying to limit the concurrent users in my moodle site. It removes the oldest user. 

I want to display message telling "Already logged in" or something.

Can I do that ?

If anyone familiar with the code please help.

Average of ratings: -
In reply to Peshali Randika

Re: Prevent multiple users with same ID at the same time

by Jon Bolton -
Picture of Particularly helpful Moodlers Picture of Testers

If you go to Site Admin > Plugins > Authentication > Manage Authentication, you can limit the number of concurrent logins for a user.

From the Moodle Docshttps://docs.moodle.org/34/en/Managing_authentication

By default, there is no limit to the number of concurrent browser logins. (If a user is concerned about this, they can view their Browser sessions page.) This setting allows you to specify how many concurrent browser logins are allowed. Once the limit is reached, the oldest session will be terminated. Note that this does not work with Single sign on plugins.

Average of ratings: Useful (1)