mirror of
https://github.com/WerySkok/nativegallery.git
synced 2024-12-22 16:41:17 +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