Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-11222

Session doesn't expire after close browser

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.0.11
    • Fix Version/s: 3.1.12-RC1
    • Component/s: Sessions
    • Labels:
      None
    • Environment:
      PHP 5.2.6, MySQL 5.0.94, Firefox 10.0.5

      Description

      The session doesn't expire even Allow persistent logins is set or not.
      My authentication method is set to Db

      Follow includes/Session.php (line 387) is call to non exist function validate_session_db().

      $method = 'validate_session_' . $method;
      if (function_exists($method))
      {
      if (!$method($this->data))

      { $session_expired = true; }

      }

      My solution is add this function at the end of includes/auth/auth_db.php file. The result is working well on myside.

      function validate_session_db(&$user)
      {
      if ($user['session_id'] != $_COOKIE["PHPSESSID"] && !isset($_COOKIE["PHPSESSID"]) && !$user['session_autologin'])

      { return false; }

      else

      { return true; }

      }

        Attachments

          Activity

            People

            • Assignee:
              CHItA CHItA
              Reporter:
              kitichai kitichai [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: