mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
We need to make this global to retrieve the cookie name correctly
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5840 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
46adf29d8b
commit
7ada8a0558
1 changed files with 2 additions and 2 deletions
|
@ -498,7 +498,7 @@ function session_clean($session_id)
|
|||
*/
|
||||
function session_reset_keys($user_id, $user_ip)
|
||||
{
|
||||
global $db, $userdata;
|
||||
global $db, $userdata, $board_config;
|
||||
|
||||
$key_sql = ($user_id == $userdata['user_id'] && !empty($userdata['session_key'])) ? "AND key_id != '" . md5($userdata['session_key']) . "'" : '';
|
||||
|
||||
|
@ -537,7 +537,7 @@ function session_reset_keys($user_id, $user_ip)
|
|||
|
||||
// And now rebuild the cookie
|
||||
$sessiondata['userid'] = $user_id;
|
||||
$sessiondata['autologinid'] = $autologin_id;
|
||||
$sessiondata['autologinid'] = $auto_login_key;
|
||||
$cookiename = $board_config['cookie_name'];
|
||||
$cookiepath = $board_config['cookie_path'];
|
||||
$cookiedomain = $board_config['cookie_domain'];
|
||||
|
|
Loading…
Add table
Reference in a new issue