Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-16894

Cookie is not set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Blocker Blocker
    • None
    • 3.3.5
    • Sessions
    • None

      When i try to connect to my forum . I succes to connect but when i change of page i lost my session and variable $disable_cookie is state false .I solve solution is replace this:

      header('Set-Cookie: ' . $name_data . (($cookietime) ? '; Expires=' . $expire : '')
      . '; path=' . $config['cookie_path']
      . $domain
      . ((!$config['cookie_secure']) ? '' : '; Secure') . ';' . (($httponly) ? ' HttpOnly' : ''), false);

       

      to this:

      setcookie($config['cookie_name'] . '_' . $name, $cookiedata, $cookietime,'/');

       

       

            Unassigned Unassigned
            rebbo rebbo [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: