Unique Login

Authentication ::: auth_uniquelogin
Maintained by António Vilela
This authentication plug-in prevents that each one Moodle user has more than one active session simultaneously.
Latest release:
763 sites
141 downloads
40 fans
Current versions available: 3

The goal of this authentication plug-in is to make sure that each user in Moodle only has one active session simultaneously. Once the user logs in, the existing previous session is terminated. Note that this does not work with SingleSignOn plugins.

To work properly, the plugin needs to be on top of the authentication plugins list and Database-stored sessions are enabled. Check the module documentation to more information.

Administrator can configure whether teacher and administrator roles are affected by the plugin.

This plugin is being maintained by ED-ROM, the portuguese Moodle Partner.

Screenshots

Screenshot #0

Contributors

António Vilela (Lead maintainer): Maintainer
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • BRIAN NYATHI
    Wed, 27 Feb 2019, 7:46 PM
    Hie Emanuel
    l have tried the plugin by following the instructions, its still not working. here is my scenario.
    lam using moodle version 3.2.2. l have downloaded and activated the plugin.l have Enabled the setting to Use database for session information.
    l have moved the plugin up. it only remains on the third position, having "Manual accounts - as position one" and "No login - as position two".
    l then tested the plugin by login into different computers using the same login details, as a student, the plugin didnt stop me or hinder me by giving me "you are already logged in" kind of message. is there anything l forgot to do to make this plug not work for me? By the way, l manually register all my students to moodle. Thank you

  • António Vilela
    Thu, 28 Feb 2019, 11:03 PM
    Hi BRIAN NYATHI,
    The old session is turned off. In other words, the plugin affects the session you have in the other browser.
    It does not prevent user to login.
  • BRIAN NYATHI
    Fri, 1 Mar 2019, 2:58 AM
    Hie António Vilela
    thank you for your quick response. so in a nutshell it means that this plugin cannot give me what lam looking for, what l want to achieve is prevent multiple login in moodle using the same login details. lam trying to avoid students sharing their login details with their friends because lam running a membership based Learning Management System. l have also tried to use the settings: Admin > Plugins > Authentication > Manage Authentication >limit the number of concurrent logins for a user (l set it to one. and still doesn't work.) Any advice to achieve this functionality would be highly appreciated. Thank you.
  • António Vilela
    Fri, 1 Mar 2019, 3:22 AM
    I don't know any solution. And if there is one. it has some risks. If there is a problem and the user ends his session without ending the session on the server, he will have to wait the time defined on Moodle settings for the inactive session to be killed, by default 30 mins, before he can login again.
    You can think about using Facebook login with a plugin available to this purpose, and prevent other authentication forms. Nobody likes to share his Facebook credentials with friends.
  • BRIAN NYATHI
    Fri, 1 Mar 2019, 3:38 AM
    To António Vilela
    thank you for your feedback Sir. l was even considering using OAuth_2_authentication, where by students can login using their gmail, facebook accounts. Then it crossed my mind that some students can easily create those accounts only to use it in moodle, hence having no absolute problem in sharing it with their friends. Since those facebook and gmail will only be created to be used in moodle login only. its a very tricky situation. l wonder how others have gone around this especially those who are offering paid membership courses to their students. For now lam stuck, but l will keep on searching hope to get something soon.
  • António Vilela
    Fri, 1 Mar 2019, 3:49 AM
    If you create the accounts manually using their email, and then users have to login using Facebook, I don't see any problem. Or does Facebook allow the same email on two accounts? I don't think it is possible.
  • BRIAN NYATHI
    Fri, 1 Mar 2019, 3:58 AM
    To António Vilela
    l think you have a point there and l think thats my best bet. l will definitely work towards that direction. the facebook and gmail login. Ang again, thank you very much for dedicating you time to help me get the solution. Thank you António.
  • BRIAN NYATHI
    Sun, 3 Mar 2019, 5:47 PM
    To António Vilela
    l would like to thank you for taking your time, all the efforts you made to point me to the right direction. As you have suggested. l have decided to use the OAuth 2 authentication which works like a charm! for those who are interested here is the link: https://docs.moodle.org/36/en/OAuth_2_authentication and here is my login page to my moodle LMS (having incorporated facebook and Google login) https://asifunde.co.za/asifunde/login/index.php
  • António Vilela
    Tue, 5 Mar 2019, 12:36 AM
    To Brian Nyathi
    You are welcome. Happy to know you found a solution!
  • arturo guinto
    Tue, 19 Mar 2019, 2:12 PM
    Hello Is this applicable for SSO authentication esp.. SAML?
  • António Vilela
    Tue, 19 Mar 2019, 11:42 PM
    To arturo guinto
    The plug-in will not work because SAML send the user out of moodle to login.
  • Alejandro Novoa
    Thu, 5 Sept 2019, 12:20 AM
    Hi, I don't see an option to install it directly on my 3.7 installation
    Is it not compatible with 3.7?
  • Vijaya Kumar
    Sat, 7 Sept 2019, 3:05 PM
    when i use unique id plugin shows unable to access- invalid login...please help
  • António Vilela
    Mon, 9 Sept 2019, 9:38 PM
    @Alejandro Novoa The plugin has been successfully tested in version 3.6 and 3.7.
    @Vijaya Kumar Do not set Unique Login as a user authentication method. Please see the correct use in https://docs.moodle.org/20/en/Uniquelogin_authentication
  • Vijaya Kumar
    Thu, 12 Sept 2019, 6:31 PM
    Thank you for your quick response it's working smile
Please login to post comments