diff --git a/config/packages/framework.yaml b/config/packages/framework.yaml index 10ed53d..e560767 100644 --- a/config/packages/framework.yaml +++ b/config/packages/framework.yaml @@ -3,7 +3,14 @@ framework: secret: '%env(APP_SECRET)%' # Note that the session will be started ONLY if you read or write from it. - session: true + session: + # 7 Tage: Session überlebt Browser-Neustarts (Default 0 = Session-Cookie) + cookie_lifetime: 604800 + # 7 Tage: PHP-GC löszt inaktive Sessions nicht nach 24 min (Default 1440) + gc_maxlifetime: 604800 + # Außerhalb des Cache-Verzeichnisses: Deploy/Cache-Clear löscht keine Sessions + # (Volume essens_var → bleibt über Rebuilds erhalten) + save_path: '%kernel.project_dir%/var/sessions' http_client: default_options: diff --git a/config/reference.php b/config/reference.php index 81c04d3..1b1bd3d 100644 --- a/config/reference.php +++ b/config/reference.php @@ -946,15 +946,6 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param; * twig?: TwigConfig, * doctrine?: DoctrineConfig, * doctrine_migrations?: DoctrineMigrationsConfig, - * "when@dev"?: array{ - * imports?: ImportsConfig, - * parameters?: ParametersConfig, - * services?: ServicesConfig, - * framework?: FrameworkConfig, - * twig?: TwigConfig, - * doctrine?: DoctrineConfig, - * doctrine_migrations?: DoctrineMigrationsConfig, - * }, * "when@prod"?: array{ * imports?: ImportsConfig, * parameters?: ParametersConfig, @@ -1055,7 +1046,6 @@ namespace Symfony\Component\Routing\Loader\Configurator; * deprecated?: array{package:string, version:string, message?:string}, * } * @psalm-type RoutesConfig = array{ - * "when@dev"?: array, * "when@prod"?: array, * "when@test"?: array, * ...