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

New session infrastructure - file, database and memcached storage

    Details

    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w39_MDL-31501_m26_sessionreboot
    • Story Points (Obsolete):
      100
    • Sprint:
      BACKEND Sprint 4

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  20 Vote for this issue
                  Watchers:
                  34 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    18/Nov/13