1

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

Tom
  • 30,090
  • 27
  • 90
  • 124

2 Answers2

1

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

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

Hope that will help.

Darmen Amanbay
  • 4,869
  • 3
  • 29
  • 50
0

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.

Tom
  • 30,090
  • 27
  • 90
  • 124