8000 Session is not work as before with logout listeners · Issue #37292 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Session is not work as before with logout listeners #37292
Closed
84F9
@gmponos

Description

@gmponos

Symfony version(s) affected: 5.1.0

Description
Moving from sf 5.0 to 5.1 the LogoutHandlers become deprecated and you have to use listeners instead.

I have an issue with my session. I was writing something to my flashbag that later I was viewing this to the customers. Moving to a listener this does not seem to work.

How to reproduce
I have created a reproducer project here:

branch: master, version: v5.0

I have a handler that writes something to the flashbag that after the logout process it will be displayed to the user

I also have a test that validates this behavior.

branch: v5.1, version: v5.1

On the branch above I migrated the handler to a listener the test exists also on that branch but it fails.

concluding

Is this the expected behavior or os this a bug? If it is expected why is that?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0