Extend sfDoctrineGuard logged-in session in Symfony 1.4?

573 Views Asked by At

Is there an easy way to extend the logged-in session length for sfDoctrineGuard in Symfony 1.4? I think it times out at 30 minutes currently but would like to make it longer.

Thanks

2

There are 2 best solutions below

0
On BEST ANSWER

In sf_root_dir/apps/<app>/config/factories.yml:

user:
  class: myUser
  param:
    timeout:         1209600 # example: 2 weeks

Hope that will help.

0
On

UPDATE: Came up with a solution that works for my needs: setting the "remember me" filter to true by default for certain types of logins. In this case it's a CMS that was timing out a bit too aggressively.

Resolved.