Skip to content
Snippets Groups Projects
Commit c3349266 authored by Jared Hancock's avatar Jared Hancock
Browse files

Fix 1.6-* upgrade to 1.7.1

8e72e521 (v1.7.1.2+) introduced a bug where
osTicket version 1.6 would not send a cookie (by calling PHP
session_start()) for the login page. Therefore, after unpacking the 1.7.1
source code, an upgrade would not be possible, because a login would never
be processed correctly.
parent 8d389ff4
Branches
Tags
No related merge requests found
...@@ -25,7 +25,12 @@ class osTicketSession { ...@@ -25,7 +25,12 @@ class osTicketSession {
if(!$this->ttl) if(!$this->ttl)
$this->ttl=SESSION_TTL; $this->ttl=SESSION_TTL;
if (defined('DISABLE_SESSION') || OsticketConfig::getDBVersion()) session_name('OSTSESSID');
if (OsticketConfig::getDBVersion())
return session_start();
elseif (defined('DISABLE_SESSION'))
return; return;
# Cookies # Cookies
...@@ -54,7 +59,6 @@ class osTicketSession { ...@@ -54,7 +59,6 @@ class osTicketSession {
register_shutdown_function('session_write_close'); register_shutdown_function('session_write_close');
//Start the session. //Start the session.
session_name('OSTSESSID');
session_start(); session_start();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment