Block concurrent sessions quiz access rule

Quiz access rules ::: quizaccess_onesession
Maintained by Vadim Dvorovenko
This plugin allows students to continue quiz attempt only in the same browser session. Any attempts to open same quiz attampt using another computer, device or browser will be blocked
Latest release:
812 sites
24 fans
Current versions available: 1

Check "Block concurrent connections" in quiz settings. First time student will access quiz attempt, session information (Moodle session, user agent, IP) will be recorded. Then any student attempts to access this quiz attempt from other computer or device or even browser will be blocked.

This is useful to prevent situation when someone helps student to solve quiz by accessing quiz with students username/password from other computer. This is much simplier then set up subnet access rule - if teacher see that student is attempting quiz that means that no one is accessing this quiz attempt at the same time.

In case when student accidentally closes browser or computer breaks during quiz, teacher can use attempt review page to unlock this attempt and allow student to continue quiz attempt on other device.

Any attempts to continue quiz from other device are logged, so teacher can see log to determine if someone tried to cheat.


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3


Vadim Dvorovenko (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Sun, Aug 19, 2018, 12:21 AM
    Windows closing means that you close all windows of browser, not just one tab or one of multiple browser windows - that'show cookie-based session works, and this plugin depends of this logic. Please use some other restriction in adition to tis plugin - e.g. limit quiz time, or set password that you wikk input yourself
  • Fri, Sep 7, 2018, 10:07 AM
    Great plugin! In conjunction with the Safe Exam Browser integration, your plugin makes giving exams on Moodle extremely secure! Thank you!

    One small grammar error--on the English statement that shows up when the rule is turned on, "please" is spelled incorrectly as "plaese"....

    Thank you again for sharing your great plugin with the Moodle community!
  • Tue, Nov 27, 2018, 1:53 PM
    Вітаю. Щиро дякую за Вашу розробку, плагін дуже допомагає при тестуванні з великою кількістю студентів. Скажіть, будь ласка, чи буде підтримка версій 3,5+?
  • Wed, Nov 28, 2018, 12:03 AM
    К несчастью, у меня не хватает времени, чтобы проверять плагины на вновь выходящих версиях. Но это не значит, что плагин не будет работать. Вы можете установить текущую версию плагина на 3.5. Если вы отпишитесь, что она у вас работает без ошибок, я отмечу здесь, что она поддерживает и 3.5.
  • Wed, Feb 27, 2019, 12:34 AM
    Heather Kevin, this plugins checks for browser sessions. If user closed tab (not entire browser), and then reopened it (for example with undo closed tab button) browser session is the same, so plugin is not blocking it. Maybe you should use safe exam browser to prevent visiting something other than quiz, or check that students close browser after test
  • Fri, Apr 5, 2019, 9:31 PM
    Hi Vadim.
    Thank you for great work. We've installed it in moodle 3.5, however we get a fatal error once the student is prevent (rightly) from accessing the quiz again instead of another more friendly error message. Perhaps print_error() shouldn't be used?
  • Tue, Oct 22, 2019, 5:42 PM
    I think that I have found a typo in component: quizaccess_onesession, string: studentinfo. The word «Plaese» is displayed, and maybe it should be «Please».
  • Tue, Oct 22, 2019, 6:25 PM
    Maria Pérez, thank you for your attention. I'll fix it as soon as i find free time. Currently you can fix it using local translator
  • Sat, Apr 4, 2020, 4:36 AM
    Hello. I would like to know if anyone has tested this plugin in a Moodle 3.8 version? Has anyone had any problems using it on Moodle 3.8?
  • Fri, Sep 11, 2020, 12:28 AM
    Hello! This plugin does not install in 3.9. Are there any predictions to do it? Thank you.
  • Tue, Sep 29, 2020, 2:08 AM
    Hello Vadim, I am also interested to know if you will release a 3.9 version? Many thanks!
  • Tue, Jun 8, 2021, 2:46 PM
    HI, Plugins seems not supported in Mobile devices as its shows notification that quiz has access rule not supported by the app.
  • Tue, Jun 8, 2021, 4:17 PM
    Azmat Ullah, yes, this plugin is for quiz sessions on computers, contorolled by your organization, to be sure that no one can cheat using other device out of you contol. Mobile devices are not such devices
  • Tue, Sep 7, 2021, 6:00 PM
    Hi Vadim, thanks for the plugin! We are experiencing some issues with users accessing the quiz with IPv6 addresses. Do you think it could be caused by the plugin not dealing with IPv6 addresses?
  • Wed, Sep 8, 2021, 11:35 AM
    Davide Ferro, plugin uses moodle function getremoteaddr() to determine IPs (it supports ipv6), and HTTP_USER_AGENT header to check browser version.
    Check logs for this user to check to see if his IP is changing during test. Maybe this user is using some anti-tracking software or proxy that changes user_agent. Any type quiz access is blocked with this plugin, it's logged, so you can see, if access is blocked with this plugin
1 2
Please login to post comments