aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/functions/sessions.php
diff options
context:
space:
mode:
authorBart van Bragt <bartvb@users.sourceforge.net>2001-04-16 18:55:52 +0000
committerBart van Bragt <bartvb@users.sourceforge.net>2001-04-16 18:55:52 +0000
commit867172c7440461e7aec56f9f3d428d1f748d5410 (patch)
treef1dda6edc95da40838d89b2e4b534b0309ad1029 /phpBB/functions/sessions.php
parent39ee44442bc40436bc5572657baac5cda3a8ae49 (diff)
downloadforums-867172c7440461e7aec56f9f3d428d1f748d5410.tar
forums-867172c7440461e7aec56f9f3d428d1f748d5410.tar.gz
forums-867172c7440461e7aec56f9f3d428d1f748d5410.tar.bz2
forums-867172c7440461e7aec56f9f3d428d1f748d5410.tar.xz
forums-867172c7440461e7aec56f9f3d428d1f748d5410.zip
Fixed session code for existing userid cookie but not corresponding DB entry
git-svn-id: file:///svn/phpbb/trunk@163 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/functions/sessions.php')
-rw-r--r--phpBB/functions/sessions.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/functions/sessions.php b/phpBB/functions/sessions.php
index b8a690af2a..0a15b910b1 100644
--- a/phpBB/functions/sessions.php
+++ b/phpBB/functions/sessions.php
@@ -176,7 +176,9 @@ function session_pagestart($user_ip, $thispage_id, $session_length)
}
}
$userdata = $db->sql_fetchrow($result);
+ }
+ if($userdata[user_id] != ''){ // The ID in the cookie was really in the DB.
//
// Check for user and ip ban ...
//
@@ -274,6 +276,7 @@ function session_pagestart($user_ip, $thispage_id, $session_length)
$password = "";
$userdata['session_logged_in'] = 0;
}
+ print "userdata known?";
$result = session_begin($userdata['user_id'], $user_ip, $thispage_id, $session_length, $autologon, $password);
if(!$result)
{