php - Remove authenticated user from context Symfony -
i know instruction how remove user has been authenticated no user has been authenticated.
should delete content of session or there proper way ?
you can try :
$this->get('security.token_storage')->settoken(null); $this->get('request')->getsession()->invalidate();
Comments
Post a Comment