Search code examples
sessionsymfony1doctrinesfdoctrineguard

Extend sfDoctrineGuard logged-in session in Symfony 1.4?


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


Solution

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

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

    Hope that will help.