Another option is to create a Filter that resets your attributes when the user is no longer authenticated (and/or do any redirection or forwarding that you want). Something like:
<?php class unlogFilter extends sfFilter { public function execute($filterChain) { $user = $this->getContext()->getUser(); if (!$user->isAuthenticated()) { $user->setAttribute('user_id', ''); } $filterChain->execute(); } } ?> On Jun 10, 1:49 am, "Birchandra Sanasam" <[EMAIL PROTECTED]> wrote: > Dear All, > > I have a problem that is when the session expired (meaning no logout action > was triggered) > the user is no longer authenticated but the attributes are still available. > > In this case how can I 'auto-clear' them? How can I run logout action? > > -- > Birchandra Sanasam > Web Developer & Analyst > # +91 9810 191478 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---