Skip to content

Commit

Permalink
Use a shared session cookie between admin and website
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Sep 2, 2024
1 parent 038dbfe commit 2707dcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/packages/framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions config/packages/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 firewall
two_factor:
prepare_on_login: true
prepare_on_access_denied: true
Expand All @@ -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 firewall
# remember_me:
# secret: "%kernel.secret%"
# lifetime: 604800 # 1 week in seconds
Expand Down

0 comments on commit 2707dcd

Please sign in to comment.