1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-14 19:45:21 +02:00

[ticket/16207] Stop setting session id when creating session

PHPBB3-16207
This commit is contained in:
Marc Alexander 2021-07-17 14:34:27 +02:00
parent 513de4c482
commit d9503225e4
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -486,7 +486,7 @@ class session
*/ */
function session_create($user_id = false, $set_admin = false, $persist_login = false, $viewonline = true) function session_create($user_id = false, $set_admin = false, $persist_login = false, $viewonline = true)
{ {
global $SID, $_SID, $db, $config, $cache, $phpbb_container, $phpbb_dispatcher; global $db, $config, $cache, $phpbb_container, $phpbb_dispatcher;
$this->data = array(); $this->data = array();
@ -697,8 +697,6 @@ class session
$db->sql_query($sql); $db->sql_query($sql);
} }
$SID = '?sid=';
$_SID = '';
return true; return true;
} }
else else
@ -791,8 +789,6 @@ class session
} }
// refresh data // refresh data
$SID = '?sid=' . $this->session_id;
$_SID = $this->session_id;
$this->data = array_merge($this->data, $sql_ary); $this->data = array_merge($this->data, $sql_ary);
if (!$bot) if (!$bot)
@ -832,9 +828,6 @@ class session
SET user_lastvisit = ' . (int) $this->data['session_time'] . ' SET user_lastvisit = ' . (int) $this->data['session_time'] . '
WHERE user_id = ' . (int) $this->data['user_id']; WHERE user_id = ' . (int) $this->data['user_id'];
$db->sql_query($sql); $db->sql_query($sql);
$SID = '?sid=';
$_SID = '';
} }
$session_data = $sql_ary; $session_data = $sql_ary;