aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/ucp.php
diff options
context:
space:
mode:
authorTom Beddard <subblue@users.sourceforge.net>2006-01-05 21:24:22 +0000
committerTom Beddard <subblue@users.sourceforge.net>2006-01-05 21:24:22 +0000
commit7d8b57811f654ca23303734e3a8e46a5b15b094c (patch)
tree3b3999f38bfc42aa2ae2922400a159ab8eb43892 /phpBB/ucp.php
parentbfa6f1d18a6eba3f323282266a977088ce2d1412 (diff)
downloadforums-7d8b57811f654ca23303734e3a8e46a5b15b094c.tar
forums-7d8b57811f654ca23303734e3a8e46a5b15b094c.tar.gz
forums-7d8b57811f654ca23303734e3a8e46a5b15b094c.tar.bz2
forums-7d8b57811f654ca23303734e3a8e46a5b15b094c.tar.xz
forums-7d8b57811f654ca23303734e3a8e46a5b15b094c.zip
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
Diffstat (limited to 'phpBB/ucp.php')
-rwxr-xr-xphpBB/ucp.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/ucp.php b/phpBB/ucp.php
index 8d501e1acb..51282ceedc 100755
--- a/phpBB/ucp.php
+++ b/phpBB/ucp.php
@@ -82,6 +82,7 @@ switch ($mode)
if ($user->data['user_id'] != ANONYMOUS)
{
$user->session_kill();
+ $user->session_begin();
}
meta_refresh(3, "index.$phpEx$SID");
@@ -114,6 +115,7 @@ switch ($mode)
// We destroy the session here, the user will be logged out nevertheless
$user->session_kill();
+ $user->session_begin();
meta_refresh(3, "{$phpbb_root_path}index.$phpEx$SID");