This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » Developer » eZPublish 5 and remember me on login
expandshrink

eZPublish 5 and remember me on login

eZPublish 5 and remember me on login

Friday 05 July 2013 11:07:32 am

Hi everyone !

I'm having an issue with ezpublish 2013.6. When a user logs in (via the legacy /user/login), a remember me cookie is created correctly for a period of 1 month.

However, when the user closes his browser, and then come back, he is redirected to the login page.

If the user then tries to refresh the page without logging-in, the cookie does his job and logs the user.

My question then is why isn't the cookie detected the first time, and how to make it happen if possible ?

For more informations, here is my security.yml part about firewalls and access control :

firewalls:        login_firewall:            pattern: ^/user/login            ezpublish: true            anonymous: true                    admin:            pattern: ^/admin            ezpublish: true            anonymous: false                    dev:            pattern:  ^/(_(profiler|wdt)|css|images|js)/            security: false
        ezpublish_setup:            pattern: ^/ezsetup            security: false
        ezpublish_rest:            pattern: ^/api/ezp/v2            stateless: true            ezpublish_http_basic:                realm: eZ Publish REST API
        ezpublish_front:            pattern: ^/            ezpublish: true            anonymous: false            access_denied_url: /user/login            form_login:                check_path: /                login_path: /user/login                use_forward: false            logout:                path: /user/logout                target: /user/login
    access_control:        - { path: ^/user/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }        - { path: ^/admin, roles: IS_AUTHENTICATED_ANONYMOUSLY }        - { path: ^/, roles: ROLE_USER }

Modified on Friday 05 July 2013 12:02:06 pm by Pierre Maraitre

No reply yet!

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from