mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Fix removal of old session keys under particular circumstances
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5930 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
4623973784
commit
a44002aefe
1 changed files with 6 additions and 0 deletions
|
@ -367,6 +367,12 @@ function session_pagestart($user_ip, $thispage_id)
|
|||
setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure);
|
||||
}
|
||||
|
||||
// Add the session_key to the userdata array if it is set
|
||||
if ( isset($sessiondata['autologinid']) && $sessiondata['autologinid'] != '' )
|
||||
{
|
||||
$userdata['session_key'] = $sessiondata['autologinid'];
|
||||
}
|
||||
|
||||
return $userdata;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue