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

Session doesn't expire after close browser

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Won't Fix
    • 3.0.11
    • 3.1.12-RC1
    • Sessions
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: