Prevent multiple logins of a Moodle Account

Prevent multiple logins of a Moodle Account

by Bhanuka Weerasekara -
Number of replies: 0

I am looking for a way to prevent multiple logins on Moodle. I have used limitconcurrentlogins feature in Moodle and set it to "1". I also used the Unique Login plugin(https://moodle.org/plugins/auth_uniquelogin). Both do the same job. They destroy the previous login session, logs out automatically. It forces users in the old session to log in again.

But here one needs to refresh the page, then only Moodle detects multiple logins. 

What I wanted is to block the second login completely. It is like when a user logged in with one device, the same person tries to log in to the same account using a different device. The second login should be blocked with a message like "User already logged in". It is like restrict login to only one device until the user logs out from that device only.

I use Moodle 3.8.2 and I am using the "Manual Method" authentication method when adding users.

Is there a way to solve this problem? Please let me know. Thanks.

Average of ratings: Useful (1)