A
A
Anonymous2016-06-06 14:42:11
symfony
Anonymous, 2016-06-06 14:42:11

Why doesn't remember_me work in symphony?

After switching to any page or updating the page, authorization flies.
security.yml:

security:

    # http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
    providers:
        webservice:
            id: app.webservice_user_provider
#        in_memory:
#            memory: ~

    firewalls:
        # disables authentication for assets and the profiler, adapt it according to your needs
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false

        main:
            anonymous: ~
            form_login:
                login_path: login
                check_path: login
                remember_me: true
            remember_me:
                secret:   '%secret%'
                lifetime: 31536000 # 365 days in seconds
                path:     /
                always_remember_me: true
                domain: ~
            logout:
                path:   /logout
                target: /
                
        wsse_secured:
            pattern:   ^/
            stateless: true
            wsse:      true

    access_control:
#            - { path: ^/rebates, roles: ROLE_USER }
            # require ROLE_ADMIN for /admin*
    role_hierarchy:
            ROLE_USER: []

    encoders:
            PABundle\Security\User\WebserviceUser: plaintext

The second day I can not find the reason

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question