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

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -