diff --git a/src/Controller/AppController.php b/src/Controller/AppController.php
index <HASH>..<HASH> 100644
--- a/src/Controller/AppController.php
+++ b/src/Controller/AppController.php
@@ -5,6 +5,7 @@ namespace App\Controller;
 use Cake\Controller\Controller;
 use Cake\Core\Configure;
 use Cake\Event\EventInterface;
+use Cake\Http\Cookie\Cookie;
 use Cake\ORM\TableRegistry;
 
 /**
@@ -78,8 +79,6 @@ class AppController extends Controller
     {
         parent::beforeRender($event);
         $this->set('appAuth', $this->AppAuth);
-        $loggedUser = $this->AppAuth->user();
-        $this->set('loggedUser', $loggedUser['firstname'] . ' ' . $loggedUser['lastname']);
     }
 
     /**
@@ -99,6 +98,7 @@ class AppController extends Controller
             if (empty($query->first())) {
                 $this->Flash->error(__('You_have_been_signed_out.'));
                 $this->AppAuth->logout();
+                $this->response = $this->response->withCookie((new Cookie('remember_me')));
                 $this->redirect(Configure::read('app.slugHelper')->getHome());
             }
         }
remove cookie if user is not validated