Skip to content

Commit

Permalink
Fixed issue #9798: Logout notice error
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jul 30, 2015
1 parent d14e78a commit 36d26dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/authentication.php
Expand Up @@ -125,7 +125,7 @@ public function logout()
$beforeLogout = new PluginEvent('beforeLogout');
App()->getPluginManager()->dispatchEvent($beforeLogout);
// Expire the CSRF cookie
$cookie = new CHttpCookie('cookie_name', $value);
$cookie = new CHttpCookie('YII_CSRF_TOKEN', '');
$cookie->expire = time()-3600;
Yii::app()->request->cookies['YII_CSRF_TOKEN'] = $cookie;
App()->user->logout();
Expand Down

0 comments on commit 36d26dc

Please sign in to comment.