Session deletion in Symfony 1.4

后端 未结 3 870
不知归路
不知归路 2021-02-10 06:04

How do I delete all session variables at once if they are not in Array?

PS I set them this way:

$this->getUser()->setAttribute(\'PayPalTransaction.         


        
3条回答
  •  耶瑟儿~
    2021-02-10 06:44

    To remove all attributes of a namespace :

    $this->getUser()->getAttributeHolder()->removeNamespace('yournamespace');
    

提交回复
热议问题