mirror of
https://github.com/WerySkok/nativegallery.git
synced 2024-11-15 03:31:19 +03:00
fix logout
This commit is contained in:
parent
b53820412f
commit
9df6f7e23e
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ class MainController
|
|||
|
||||
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('NGALLERYSESS', '', 1);
|
||||
setcookie('NGALLERYSESS_', '', 1);
|
||||
|
|
Loading…
Reference in a new issue