Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-9827 Moodle 3.2 QA
  3. MDLQA-10346

CLONE - File and database session handlers can be used to manage users sessions

XMLWordPrintable

      Prerequisites

      1. autologinguest site setting disabled

      Setup
      We need to test each of them so we need repeat the steps below after setting each of the session handlers in our config.php:

      • database session handler
        1. Log out if you are logged in
        2. Remove any config.php $CFG->session_handler_* stuff you previously added
        3. Paste this in your config.php before require_once...lib/setup.php

              $CFG->session_handler_class = '\core\session\database';
              $CFG->session_database_acquire_lock_timeout = 120;
              

      • file session handler
        1. Log out if you are logged in
        2. Remove any config.php $CFG->session_handler_* stuff you previously added
        3. Paste this in your config.php before require_once...lib/setup.php

              $CFG->session_handler_class = '\core\session\file';
              $CFG->session_file_save_path = $CFG->dataroot.'/sessions';
              

      Test

      1. Use the CLI to run php admin/cli/purge_caches.php
      2. Set it up according to config-dist.php instructions (you can also check Session_handling moodle docs page)
      3. Log in, set browser the url to calendar/view.php press enter and press "Hide group events"
      4. Open a session with the same user in another browser, leave the previous browser session opened
      5. Set the browser url to calendar/view.php press enter, group events should be visible, press "Hide course events"
      6. Return to the previous session and set the browser url to calendar/view.php press enter
      7. Group events should be hidden and course events should be visible
      8. Log out (last opened session)
      9. Open another session with a different user
      10. Go to calendar/view.php and check that all event types are visible by default
      11. Log out (all opened sessions)
      12. Set http://YOURSITE/admin/index.php url in your browser, you should be redirected to the login page
      13. Log in as admin, you should be directed to admin/index.php

            rajeshtaneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.