Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a shared session cookie between admin and website #256

Open
wants to merge 2 commits into
base: 2.6
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading