Reputation: 6461
I try to prevent the automatic logout for users in Symfony. According to this post Symfony2 Prevent Auto Logout
I am trying to change my code like this:
#app/config/config.yml
session:
cookie_lifetime: 86400
gc_maxlifetime: 1800
The problem is, that in my Symfony I cannot find a config.yml
my config folder looks like this:
config
packages
routes
bundles.php
routes.yaml
services.yaml
Upvotes: 0
Views: 307
Reputation: 564
You can set the cookies lifetime for all project at the config/packages/framework.yaml
or for only production (for better developing without login all the time) at the config/packages/prod/framework.yaml
. Both under the session key as the linked article suggest.
Upvotes: 2