mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/12360] Fix duplicated creation of session when logging out the user
In7d8b578
this line was introduced to fix a bug with style.php. Later since1d42d1b
a new session is always created after killing the old one. This causes a duplicated creation of the session everytime the user logs itself out. PHPBB3-12360
This commit is contained in:
parent
f0176b5393
commit
1a56400a45
1 changed files with 0 additions and 1 deletions
|
@ -94,7 +94,6 @@ switch ($mode)
|
||||||
if ($user->data['user_id'] != ANONYMOUS && $request->is_set('sid') && $request->variable('sid', '') === $user->session_id)
|
if ($user->data['user_id'] != ANONYMOUS && $request->is_set('sid') && $request->variable('sid', '') === $user->session_id)
|
||||||
{
|
{
|
||||||
$user->session_kill();
|
$user->session_kill();
|
||||||
$user->session_begin();
|
|
||||||
}
|
}
|
||||||
else if ($user->data['user_id'] != ANONYMOUS)
|
else if ($user->data['user_id'] != ANONYMOUS)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue