Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Symfony 6.0 After exit Impersonation, if i go back from browser , then i get that temporary user's session in my session

$
0
0

Symfony 6.0 After exit Impersonation, if I go back from the browser, then I get that temporary user's session in my session.On clicking, Exit Impersonation, it redirects to my destination perfectly.

However, after one Impersonation, and after exit of it. If I try to switch users with another user, I get the earlier user's session only, the not current one.

For Exit Impersonation

{% if is_granted('IS_IMPERSONATOR') %}<a style="color:indigo;" href="{{ impersonation_exit_path(path('companylist') ) }}">Exit From Switch Account</a>{% endif %}

Security.yml

security:    enable_authenticator_manager: true    # https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords    role_hierarchy:        ROLE_ADMIN: ['ROLE_CUSTOMER_ADMIN', 'ROLE_USER_ADMIN', 'ROLE_ALLOWED_TO_SWITCH']    firewalls:                app_user_provider:            switch_user: true            login_link:                check_route: login_check                signature_properties: ['id']                max_uses: 2                default_target_path: dashboard                lifetime: 300            provider: app_user_provider

Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>