开发者

How to remove user session attribute saved in namespace 'foo'?

开发者 https://www.devze.com 2023-03-18 09:19 出处:网络
To remove a user session attribute foobar\' saved in the default name space, simply do this: $user->getAttributeHolder()->remove(\'foobar\');

To remove a user session attribute foobar' saved in the default name space, simply do this:

$user->getAttributeHolder()->remove('foobar');

How do you remove attribute foobar if it was saved in namespace foobar like t开发者_开发技巧his:

$user->setAttribute('foobar', 123, 'foo');


I think you can specify the namespace like this :

$user->getAttributeHolder()->remove('foobar','','foo');
0

精彩评论

暂无评论...
验证码 换一张
取 消