Sessions: 7-Tage-Cookie+GC (Default 24min!) + save_path /app/var/sessions außerhalb des Caches → überlebt Deploys/Cache-Clears
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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<string, RouteConfig|ImportConfig|AliasConfig>,
|
||||
* "when@prod"?: array<string, RouteConfig|ImportConfig|AliasConfig>,
|
||||
* "when@test"?: array<string, RouteConfig|ImportConfig|AliasConfig>,
|
||||
* ...<string, RouteConfig|ImportConfig|AliasConfig>
|
||||
|
||||
Reference in New Issue
Block a user