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:
1117 sites
183 downloads
41 fans
Current versions available: 2

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.

Screenshots

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

Contributors

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

Comments RSS

إظهار التعليقات
  • Azmat Ullah
    الثلاثاء، 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.
  • Vadim Dvorovenko
    الثلاثاء، 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
  • Davide Ferro
    الثلاثاء، 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?
  • Vadim Dvorovenko
    الأربعاء، 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
  • Cristina Martín
    الاثنين، 13 فبراير 2023، 7:48 PM
    Hi Vadim, a version of this plugin for Moodle4 is planned?
    Thanks for the plugin.
  • Gebze Moodle
    الجمعة، 10 نوفمبر 2023، 7:45 PM
    Hi Vadim Dvorovenko, that is great plugin. Is it possible to apply this plugin for lesson videos? To prevent students open multi training videos at the same time.
  • Linda Raymond-Hagen
    الجمعة، 1 مارس 2024، 8:02 AM
    Hi, Can this plugin be adapted to work with Respondus LockDown Browser?
  • Vadim Dvorovenko
    الاثنين، 25 مارس 2024، 1:51 AM
    Cristina Martín, plugin was upgraded to support recent versions.
    Gebze Moodle, this plugin can be extended or used with lesson because moodle do not provede security plugin features fom mod_lesson.
    Linda Raymond-Hagen, Respondus provide complex solutions to prevent quiz cheating. If their solution are vunerable to parallel seessions, they should improve their solution. Long explanation in https://github.com/vadimonus/moodle-quizaccess_onesession/pull/11
  • mik dodge
    الجمعة، 19 أبريل 2024، 5:58 AM
    why i'm keep getting this error message:
    You are trying to access quiz attempt from a computer, device or browser other than the one you used to start the quiz. If you have accidentally closed your browser, please, contact the teacher.
    while i'm testing to access the quiz from another device, the system blocks the second device and after time it blocks the first device that accessed the quiz first..!
    at the end, i get this error on both machines..!!
  • Vadim Dvorovenko
    الجمعة، 19 أبريل 2024، 9:29 AM
    mik dodge, you should check moodle logs, to check if something changes. Plugin relies on ip address, moodle session and useragent headers. You should check, that you do not change ip (if using mobile network or wifi), do not relogin to moodle and you browser do not randomly change useragent (there're some browser extentions that can do so). Logs will show you ip changes and login events
  • Mohammad Hussein
    الأربعاء، 9 أكتوبر 2024، 1:56 PM
    Hi Vadim
    Thanks for the plugin, it's helped us a lot. We are using it on Moodle 4.1 hosted on the cloud, it works fine with us except for one issue we are facing, all of our labs are connected to one vLan IP 185.64.200.82 (local IP) but whenever the computer is restarted or we change the student PC the quiz is locked and we have to reset the attempt.
    We are sure all PC have the same IP, do you think it's because we hosted Moodle on the cloud?

    Any idea?
  • Vadim Dvorovenko
    الخميس، 28 نوفمبر 2024، 7:57 PM
    Mohammad Hussein, this is expected behaviour, it locks quiz on any session change (browser restart, computer changed even to same ip). If you need only disable access from other IP, you should use ip address rule or quizaccess_ipaddresslist plugin
  • Umit Ulusar
    الأربعاء، 18 ديسمبر 2024، 2:45 AM
    Is it possible to use this plugin with a tablet which runs Android version of the mobile application. Thanks. Much appreciated.
  • Ramon Ovelar
    الاثنين، 9 يونيو 2025، 4:33 PM
    In a quiz with more than 300 concurrent students in 3 different sites and wifi connection, the attempt of one student was blocked two minutes after the beginning. A few minutes later (8 and 11 minutes since the beginning) other 2 students were blocked. We are looking at the logs of Moodle and we don't see any other device trying to enter the quiz with the same user. The IPs remain the same before and atfer these students being blocked. What else could explain this blockage?
    We decided to remove quickaccess onesession rule, unmarking the box in the settings, and we had a general error stating the id of the quiz was not valid during almost 5 minutes, and afterwards everything resumed ok. We are now studying every available log trying to understand what happenned.
  • Vadim Dvorovenko
    الخميس، 12 يونيو 2025، 2:44 PM
    Ramon Ovelar.
    This plugin checks not only ip, but client's session and useragent. If user closed and reopened browser, he will be blocked too. But teacher can allways unlock students attempt.
    Plugin allways log any attempt to use test from other session (but maybe same ip), if you do not see this event, there's some problem with your system. Plugin settings should apply immediately, without any errors.
    If you can meke reproducable scenario, plesase make issue on github
1 2 3
Please login to post comments