Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-31501

New session infrastructure - file, database and memcached storage

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.6
    • 2.2.1, 2.5
    • Libraries
    • MOODLE_22_STABLE, MOODLE_25_STABLE
    • MOODLE_26_STABLE
    • w39_MDL-31501_m26_sessionreboot
    • Hide

      Repeat following for all 3 session handlers (database, file, memcached), see config-dit.php for configuration options.

      1. run phpunit tests
      2. install moodle
      3. upgrade moodle from 2.2 and 2.5
      4. login - logout - login - logout
      5. login in multiple browsers with multiple accounts - verify the sessions table gets filled with all sessions and the timemodified column is updated every 20 seconds
      6. login in one browser and delete or suspend the account as admin from different browser - user should be kicked out
      7. verify session locking works (please note the first http requests is not locked) - the easiest way is to create a script with require('config.php') followed by sleep(30);

      Other tests:

      1. verify that file based handler is used by default in new installs
      2. verify the "database sessions option" disappears if you put $CFG->session_handler_class into your config.php
      3. be creative and try to come up with more session related testing
      Show
      Repeat following for all 3 session handlers (database, file, memcached), see config-dit.php for configuration options. run phpunit tests install moodle upgrade moodle from 2.2 and 2.5 login - logout - login - logout login in multiple browsers with multiple accounts - verify the sessions table gets filled with all sessions and the timemodified column is updated every 20 seconds login in one browser and delete or suspend the account as admin from different browser - user should be kicked out verify session locking works (please note the first http requests is not locked) - the easiest way is to create a script with require('config.php') followed by sleep(30); Other tests: verify that file based handler is used by default in new installs verify the "database sessions option" disappears if you put $CFG->session_handler_class into your config.php be creative and try to come up with more session related testing
    • 100
    • BACKEND Sprint 4

      The OU finds memcache for session handling to be important for performance. Here is our code to be commented on, and hopefully, if good enough, added to core.

      Edit: This ticket has been highjacked for memcached session handler instead of memcache.

            Votes:
            20 Vote for this issue
            Watchers:
            31 Start watching this issue

              Created:
              Updated:
              Resolved:

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