Your Moodle version

Authentication: Unique Login

Maintained by Picture of António Vilela António Vilela
This authentication plug-in prevents that each one Moodle user has more than one active session simultaneously.

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 to more information.

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


Screenshot #0


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 António Vilela
    Fri, Jan 17, 2014, 7:57 PM
    The plugin can be in third place and still works fine.
    We have just tested it with Moodle 2.6.1 (Build: 20140113).
    Did you activate the recording of sessions on the database? Please have a look at the documentation:
  • Picture of syed zaidi
    Mon, Mar 3, 2014, 6:07 PM
    Can you please update the download link as it is showing : 2.x (Build: 2013010100) (2013010100) for Moodle 2.0, 2.1, 2.2, 2.3, 2.4"

    And as per your last comment "We have just tested it with Moodle 2.6.1 (Build: 20140113)."
    Please provide the latest build for download.
  • Picture of António Vilela
    Thu, Mar 6, 2014, 5:47 PM
    We have just updated the version info. Version 2013010100 works correctly in Moodle 2.6.
  • Picture of Makŏ Williams-Angmor
    Wed, Oct 22, 2014, 12:01 AM
    hi Antonio, I am happy you have made this plug-in, however I will need 2010120100 version. i think i am using 2.7. Can you please help me?
  • Picture of António Vilela
    Wed, Oct 22, 2014, 3:22 AM
    Hi Mako. The plug-in is working on Moodle 2.7 too. Just download the latest build (Build: 2011051000) and install it.
  • Picture of Lavanya Manne
    Tue, Jan 6, 2015, 12:28 AM
    I am looking for a plugin where an user can have only one active session i.e., logged into firefox with one account and then logged into the same account on chrome browser, in such case the user shouldn't be allowed to lo gin in anymore.

    Recently, I had installed unique lo gin authentication plugin for moodle2.8+. The installation was good to go without errors. I followed the instructions as given in the plugin documentation.

    (1) Enabled session handling

    (2) Moved the plugin to the top position in Manage authentication.

    But still the user is able to lo gin into fire fox, again in with the same account in chrome. Overall the plugin was not working.

    Could you please guide me where I was going wrong..

    Many Thanks!!!!
  • Picture of António Vilela
    Tue, Jan 6, 2015, 1:35 AM
    Hi Lavanya Manne. Did you try the plugin with as admin account? Administrators are allowed to have multiple logins.
  • Picture of Michael Tran
    Tue, Apr 28, 2015, 12:40 PM
    Hi everyone I can confirm what Lavanya is saying can be replicated in my environment which is moodle2.8 using mysql5 and apache2 on a ubuntu linux installation.
    I could not move the uniquelogin plugin at the top in the Manage authentication, I could only get it to the third position as described by others.

    I am testing by logging in as a student on my laptop and also on a separate device (tablet)

    Any ideas?
    How can I confirm that sessions are really being handled by the database as opposed to files?
    Is there any debug information I can obtain to figure out what could be causing this?
  • Picture of sentient consultant
    Sat, May 2, 2015, 9:49 AM
    I tried this on moodle2.8 as well. Doesn't seem to work as the position of the plugin still remains 3rd. I cannot move it any further. any help is much appreciated.
  • Picture of António Vilela
    Wed, May 6, 2015, 6:22 PM
    On Moodle 2.8 is no longer possible to move the unique login plugin to the first position. However, this does not compromise the plugin functionallity.
    I have just tested it on Moodle 2.8.2+ (Build: 20150123) and the plugin works fine.

    You must ensure that the dbsessions option is Administration>Server>Sessions is active.
  • Picture of Baptiste Lhoste
    Fri, May 29, 2015, 8:47 PM
    First of all, thanks for this plugin.
    Nevertheless I can not have multiple logins with my Administrator account. Is it normal ?
  • Picture of António Vilela
    Tue, Jun 9, 2015, 11:54 PM
    Hi Baptiste,
    Yes, that is how the plugin is working now. We will release a new version soon with the possibility to choose which roles are limited by unique login, including teachers (on 1 or more courses) and admins. Probably in August the new version will be available.
  • Picture of Baptiste Lhoste
    Thu, Nov 19, 2015, 4:44 PM
    Hi António,
    I would like to know if the new version will be available any time soon.
    We would like to enable anonymous login so we want to disable unique login for guest user.
  • Picture of Alfonso CIS
    Wed, Nov 25, 2015, 8:19 PM
    I just installed the Unique login to Moodle 2.8.6, I followed the steps in the documentation. But the same user is logging twice in moodle. How I can fix it?

    I have screenshots of the configuration as I have (not as able to add that you can see)

    Thank you
  • Picture of António Vilela
    Wed, Nov 25, 2015, 9:09 PM
    Alfonso, I sent you a private message.
1 2 3
Please login to post comments