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

Reset the session key for session attributes to a default Symfony value #178

Merged
merged 1 commit into from Apr 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions bundle/Resources/config/default_settings.yml
Expand Up @@ -9,3 +9,13 @@ parameters:

# Whether to use legacy mode or not. If true, will let the legacy kernel handle url aliases.
ezsettings.default.legacy_mode: false

# Override to fix eZ Publish Legacy session namespace. Since Symfony 3.4.39 attribute bag service
# is not injected into session any more (https://github.com/symfony/symfony/pull/36063), making the bag
# use the default session key, while previously it was customized in eZ kernel.
# https://github.com/ezsystems/ezpublish-kernel/blob/7.5/eZ/Bundle/EzPublishCoreBundle/Resources/config/session.yml#L21
# This somehow has the effect on login pages when legacy admin UI is ran in "legacy_mode: false"
# (e.g. Netgen Admin UI), where the first redirect after a login shows a secondary login form.
# This resets the session key to a default value in Symfony, making sure it is compatible
# with both previous versions of Symfony as well as 3.4.39+
ezpublish.session.attribute_bag.storage_key: "_sf2_attributes"