mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
Backporting a change to the forward ported......oh forget it :P
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5664 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
8c8a981a2a
commit
a8a5c91cbe
1 changed files with 9 additions and 0 deletions
|
@ -511,6 +511,15 @@ function session_reset_keys($user_id, $user_ip)
|
||||||
message_die(CRITICAL_ERROR, 'Error removing auto-login keys', '', __LINE__, __FILE__, $sql);
|
message_die(CRITICAL_ERROR, 'Error removing auto-login keys', '', __LINE__, __FILE__, $sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$where_sql = 'session_user_id = ' . (int) $user_id;
|
||||||
|
$where_sql .= ($user_id == $userdata['user_id']) ? "' AND session_id <> '" . $userdata['session_id'] . "'" : '';
|
||||||
|
$sql = 'DELETE FROM ' . SESSIONS_TABLE . "
|
||||||
|
WHERE $where_sql;
|
||||||
|
if ( !$db->sql_query($sql) )
|
||||||
|
{
|
||||||
|
message_die(CRITICAL_ERROR, 'Error removing user session(s)', '', __LINE__, __FILE__, $sql);
|
||||||
|
}
|
||||||
|
|
||||||
if ( !empty($key_sql) )
|
if ( !empty($key_sql) )
|
||||||
{
|
{
|
||||||
$auto_login_key = dss_rand() . dss_rand();
|
$auto_login_key = dss_rand() . dss_rand();
|
||||||
|
|
Loading…
Add table
Reference in a new issue