mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00: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:
parent
39ee44442b
commit
867172c744
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue