Skip to content

Session is not work as before with logout listeners #37292

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy