mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16207] Stop setting session id when creating session
PHPBB3-16207
This commit is contained in:
parent
513de4c482
commit
d9503225e4
1 changed files with 1 additions and 8 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue