From 77c0ea2bd8e72c6e89ed618048d838b26b33945e Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Mon, 2 Sep 2024 11:33:26 +0200 Subject: [PATCH] Use a shared session cookie between admin and website --- config/packages/framework.yaml | 3 ++- config/packages/security.yaml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/packages/framework.yaml b/config/packages/framework.yaml index ceea7e3a..7c4a40be 100644 --- a/config/packages/framework.yaml +++ b/config/packages/framework.yaml @@ -7,6 +7,7 @@ framework: # Enables session support. Note that the session will ONLY be started if you read or write from it. # Remove or comment this section to explicitly disable session support. session: + cookie_path: / name: SULUSESSID # This avoids conflicts with other applications running on the same domain #esi: true @@ -16,4 +17,4 @@ when@test: framework: test: true session: - storage_factory_id: session.storage.factory.mock_file + storage_factory_id: session.storage.factory.mock_files diff --git a/config/packages/security.yaml b/config/packages/security.yaml index 4e1848c1..334fa3b1 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -39,6 +39,7 @@ security: failure_handler: sulu_security.authentication_handler logout: path: sulu_admin.logout + # invalidate_session: false # If you have multiple firewalls, you might want to set this to true to only logout of the current current firewall two_factor: prepare_on_login: true prepare_on_access_denied: true @@ -62,6 +63,7 @@ security: # logout: # path: logout # target: / + # # invalidate_session: false # If you have multiple firewalls, you might want to set this to true to only logout of the current current firewall # remember_me: # secret: "%kernel.secret%" # lifetime: 604800 # 1 week in seconds