Skip to content

Commit

Permalink
Reset the session key for session attributes to a default Symfony val…
Browse files Browse the repository at this point in the history
…ue (#178)
  • Loading branch information
emodric committed Apr 10, 2020
1 parent 165c797 commit 4bc4408
Showing 1 changed file with 10 additions and 0 deletions.
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"

0 comments on commit 4bc4408

Please sign in to comment.