1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-19 07:08:09 +01:00

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
This commit is contained in:
Bart van Bragt 2001-04-16 18:55:52 +00:00
parent 39ee44442b
commit 867172c744

View File

@ -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)
{