Thanks for the reply. However it didn't solve my problem. I have just
added a setInterval(...) call at the client side that partially does
the trick. But if the user quits the application and then returns
later, he'll still have to login again, which is a total shame for the
application I'm working on.

I'm really confused here; as always with php it seems, it's very
difficult to know what goes in and out of the black box. I'm going to
write another post on a related problem that I'm having, which is just
as annoying and confusing: cookies don't seem to be properly handled
with the sfGuard plugin, so not only does the user have to login again
when closing the application but in addition, his information is never
saved, which contradicts all best practices. Oh well, I'll post that
and see if it's a known problem.

Thanks again fo the reply!

Candide

On Apr 23, 2:56 pm, Christian Weyand <[email protected]> wrote:
> 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