mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
when logging out or clearing cookies the session_id is cleared, but this broke style.php since it needs a sid. Added a line to create the new guest session before finishing these actions.
git-svn-id: file:///svn/phpbb/trunk@5429 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
bfa6f1d18a
commit
7d8b57811f
1 changed files with 2 additions and 0 deletions
|
@ -82,6 +82,7 @@ switch ($mode)
|
||||||
if ($user->data['user_id'] != ANONYMOUS)
|
if ($user->data['user_id'] != ANONYMOUS)
|
||||||
{
|
{
|
||||||
$user->session_kill();
|
$user->session_kill();
|
||||||
|
$user->session_begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
meta_refresh(3, "index.$phpEx$SID");
|
meta_refresh(3, "index.$phpEx$SID");
|
||||||
|
@ -114,6 +115,7 @@ switch ($mode)
|
||||||
|
|
||||||
// We destroy the session here, the user will be logged out nevertheless
|
// We destroy the session here, the user will be logged out nevertheless
|
||||||
$user->session_kill();
|
$user->session_kill();
|
||||||
|
$user->session_begin();
|
||||||
|
|
||||||
meta_refresh(3, "{$phpbb_root_path}index.$phpEx$SID");
|
meta_refresh(3, "{$phpbb_root_path}index.$phpEx$SID");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue