symfony2 session lifetime
You can set the session expiration time in your config file under the framework section. Mine looks like this: config.yml framework: secret: %secret% charset: UTF-8 error_handler: null csrf_protection: enabled: true router: { resource: “%kernel.root_dir%/config/routing.yml” } validation: { enabled: true, annotations: true } templating: { engines: [‘twig’] } #assets_version: SomeVersionScheme session: default_locale: %locale% cookie_lifetime: 3600 // … Read more