Symfony2 sessions not working as expected / session keeps timing out

前端 未结 5 1902
后悔当初
后悔当初 2021-01-03 00:31

My Symfony2 application displays a main page, and from there on it primarily uses AJAX requests to display content to the user via modals.

I\'ve noticed that after t

5条回答
  •  萌比男神i
    2021-01-03 00:42

    I set remember me cookie set to default, and then in security.yml

    security:
        firewalls:
            main:
                form_login:
                    remember_me: true
                remember_me:
                    key: mycookie
                    lifetime: 2592000 # 30 days
                    path: /
                    domain: ~
                    always_remember_me: true
    

提交回复
热议问题