mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 09:52:29 +02:00
feature #383, dedicated function to delete sessions
This commit is contained in:
@@ -405,11 +405,7 @@ DELETE FROM '.$table.'
|
||||
}
|
||||
|
||||
// purge of sessions
|
||||
$query = '
|
||||
DELETE FROM '.SESSIONS_TABLE.'
|
||||
WHERE data LIKE \'%pwg_uid|i:'.(int)$user_id.';%\'
|
||||
;';
|
||||
pwg_query($query);
|
||||
delete_user_sessions($user_id);
|
||||
|
||||
// destruction of the user
|
||||
$query = '
|
||||
|
||||
Reference in New Issue
Block a user