3

I have my app set, in app/config/config.yml, to have a session lifetime of one year:

framework:
    session:
        default_locale: %locale%
        lifetime:       31536000
        auto_start:     true

However, my users are getting booted after about an hour of inactivity, which is of course less than a year. Any ideas on what the problem could be?

Jason Swett
  • 43,526
  • 67
  • 220
  • 351
  • As of symfony2.4, it's `cookie_lifetime` instead of `lifetime`. In case you stumbled across this question if you were wondering: How do I set the session lifetime in symfony2. Like me. – k0pernikus May 14 '14 at 17:29

1 Answers1

6

Turns out the culprit was gc_maxlifetime in php.ini being set to only 1440 seconds. A little more info here: symfony2 session lifetime

Community
  • 1
  • 1
Jason Swett
  • 43,526
  • 67
  • 220
  • 351