fix logout

This commit is contained in:
themohooks 2024-07-10 12:46:47 +03:00
parent b53820412f
commit 9df6f7e23e

View file

@ -25,7 +25,7 @@ class MainController
public static function logout() public static function logout()
{ {
DB::query('DELETE FROM login_tokens WHERE servicekey=:userid', array(':userid'=>$_COOKIE['NGALLERYSERVICE'])); DB::query('DELETE FROM login_tokens WHERE token=:userid', array(':userid'=>$_COOKIE['NGALLERYSESS']));
setcookie('NGALLERYSERVICE', '', 1); setcookie('NGALLERYSERVICE', '', 1);
setcookie('NGALLERYSESS', '', 1); setcookie('NGALLERYSESS', '', 1);
setcookie('NGALLERYSESS_', '', 1); setcookie('NGALLERYSESS_', '', 1);