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

need to purge userid=0 sessions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: Other
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      sessions with userid=0 (not logged in) are not getting removed from the sessions table when using DB sessions.

      I have attached a patch which adds this to the session_gc function.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              skodak Petr Skoda added a comment -

              Hello, did you consider using git instead of patches? Benefits are:
              1/ you would get the credit for each commit
              2/ a lot less work to include your changes in official distribution

              I would at least need to know your public email address to include you as the author of commit manually.

              Thanks for the patch!

              Petr

              Show
              skodak Petr Skoda added a comment - Hello, did you consider using git instead of patches? Benefits are: 1/ you would get the credit for each commit 2/ a lot less work to include your changes in official distribution I would at least need to know your public email address to include you as the author of commit manually. Thanks for the patch! Petr
              Hide
              ashleyholman Ashley Holman added a comment -

              Hey Petr, yes I'm going to get a public git server set up - just waiting on it to be provisioned. In the meantime can set author to "Ashley Holman <ashley@netspot.com.au>"

              Cheers

              Show
              ashleyholman Ashley Holman added a comment - Hey Petr, yes I'm going to get a public git server set up - just waiting on it to be provisioned. In the meantime can set author to "Ashley Holman <ashley@netspot.com.au>" Cheers
              Hide
              skodak Petr Skoda added a comment -

              Thanks!

              Show
              skodak Petr Skoda added a comment - Thanks!
              Hide
              mudrd8mz David Mudrák added a comment -

              Tested. Thanks Ashley for the patch!

              Show
              mudrd8mz David Mudrák added a comment - Tested. Thanks Ashley for the patch!

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    21/Feb/11