Hi,
there's a value in your php.ini which handles clearing outdated sessions.

The configs in your settings.yml can't overwrite this directives..

If i remember right, you'll need to increade the 
session.gc_maxlifetime.. don't have a changed config at home atm..

Greetings,
Christian


ckemmler schrieb:
> I have tried several several strategies to set the timeout of a
> session in my application to 2 weeks; all have failed so far. The
> current one consists of:
>
> 1) setting the timeout to 0 in my application's settings, under all:
>
> all:
>   .actions: [...]
>   .settings: [...]
>     timeout:    0
>
> 2) extending my user session object to set the timeout according to my
> needs:
>
> class myUser extends sfGuardSecurityUser
> {
>       public function initialize(sfEventDispatcher $dispatcher, sfStorage
> $storage, $options = array())
>         {
>           if (sfConfig::get('sf_timeout') == 0) {
>             // session will expire if window is open for 2 weeks
>             sfConfig::set('sf_timeout', 86400*14);
>           }
>           return parent::initialize($dispatcher, $storage, $options);
>         }
> ...
>
> what am I doing wrong?
> >   


--~--~---------~--~----~------------~-------~--~----~
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