Hello!

The simplest approach would be to use inheritence: In apps/XXX/lib/
myUser.class.php you have got you myUser-Class. Add a function like
the following:

public function getAttribute($key) {
  if($this->isAuthenticated())
    $this->resetAttributes();

  return parent::getAttribute($key);
}

I did not test this, but you should see what I mean.

I have got a different problem: I want to show a user, when his
session will be expired. How can I solve this?

Thanks in advance :-)

Ralf

On 8 Okt., 17:21, Christian Weyand <[EMAIL PROTECTED]> wrote:
> Heya everyone,
>
> i experienced the very same issue today. I set a bunch of attributes,
> reduced the session-lifetime to 60 seconds, but the attributes i set
> before won't get cleared.
> Anyone got a clue on how to track this behaviour down?
>
> Thanks in advance
> chris
>
> > hi all,
>
> > this might be trivial but I just can't find how to do it..
>
> > when a user logs in onto my site I set a few attributes to
> > $this->getUser()->setAttribute('nickname', #nick#);
>
> > now when the session expires (meaning no logout action was triggered)
> > the user is no longer authenticated but the attributes are still
> > available.
>
> > how can I 'auto-clear' them?
>
> > cheers
> > /christian


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to