mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-14 11:35:33 +02:00
[ticket/16207] Stop setting session id when creating session
PHPBB3-16207
This commit is contained in:
parent
513de4c482
commit
d9503225e4
@ -486,7 +486,7 @@ class session
|
||||
*/
|
||||
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();
|
||||
|
||||
@ -697,8 +697,6 @@ class session
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
|
||||
$SID = '?sid=';
|
||||
$_SID = '';
|
||||
return true;
|
||||
}
|
||||
else
|
||||
@ -791,8 +789,6 @@ class session
|
||||
}
|
||||
|
||||
// refresh data
|
||||
$SID = '?sid=' . $this->session_id;
|
||||
$_SID = $this->session_id;
|
||||
$this->data = array_merge($this->data, $sql_ary);
|
||||
|
||||
if (!$bot)
|
||||
@ -832,9 +828,6 @@ class session
|
||||
SET user_lastvisit = ' . (int) $this->data['session_time'] . '
|
||||
WHERE user_id = ' . (int) $this->data['user_id'];
|
||||
$db->sql_query($sql);
|
||||
|
||||
$SID = '?sid=';
|
||||
$_SID = '';
|
||||
}
|
||||
|
||||
$session_data = $sql_ary;
|
||||
|
Loading…
x
Reference in New Issue
Block a user