Authentication: Unique Login

auth_uniquelogin
Maintained by Picture of António VilelaAntónio Vilela
This authentication plug-in prevents that each one Moodle user has more than one active session simultaneously.
870 sites
212 downloads
22 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.

To work properly, the plugin needs that Database-stored sessions are enabled. Have a look at the module documentation on http://docs.moodle.org/20/en/Uniquelogin_authentication to more information.

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

Screenshots

Screenshot #0

Contributors

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

Comments RSS

Show comments
  • Picture of Rafael Ricardo Romero Acosta
    Sat, Jul 7, 2018, 4:54 AM
    Buen día Antonio, hay alguna manera de configurar el plugin para que en lugar de caducar la sesión abierta al abrir la nueva, evite como tal la apertura de una segunda sesión?
  • Picture of António Vilela
    Sat, Jul 7, 2018, 4:50 PM
    Hola Rafael, No there is not a way to do that. Only changing the plugin code. However that might have problems. If the user loses his session in an odd way and it is kept alive at the server, the user would have to wait 30 minutes to login again, or more, depending on the time configured on Moodle to kill inactive sessions.
  • Picture of Rekha C
    Mon, Oct 15, 2018, 12:04 AM
    Hi Antonio,
    Does Build: 2011051000 work with 3.5 ?
  • Picture of António Vilela
    Thu, Oct 18, 2018, 12:28 AM
    Hi Rekha C,
    Yes it works. But we have a new version 2018101700 to remove a warning in moodle 3.5
  • Picture of BRIAN NYATHI
    Wed, Feb 27, 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

  • Picture of António Vilela
    Thu, Feb 28, 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.
  • Picture of BRIAN NYATHI
    Fri, Mar 1, 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.
  • Picture of António Vilela
    Fri, Mar 1, 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.
  • Picture of BRIAN NYATHI
    Fri, Mar 1, 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.
  • Picture of António Vilela
    Fri, Mar 1, 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.
  • Picture of BRIAN NYATHI
    Fri, Mar 1, 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.
  • Picture of BRIAN NYATHI
    Sun, Mar 3, 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
  • Picture of António Vilela
    Tue, Mar 5, 2019, 12:36 AM
    To Brian Nyathi
    You are welcome. Happy to know you found a solution!
  • Picture of arturo guinto
    Tue, Mar 19, 2019, 2:12 PM
    Hello Is this applicable for SSO authentication esp.. SAML?
  • Picture of António Vilela
    Tue, Mar 19, 2019, 11:42 PM
    To arturo guinto
    The plug-in will not work because SAML send the user out of moodle to login.
1 2 3 4 5 6
Please login to post comments