Symfony HWIOAuthBundle - How to disable automatic logout?

I use HWIOAuthBundle to log in using my social account. And as soon as the user logged in, he logged out after 30 minutes or so.

Any idea how to disable this so that they stay forever?

+4
source share
2 answers

Set cookie_lifetimein your configuration:

# app/config/config.yml
framework:
    session:
        #lifetime in seconds
        cookie_lifetime: 3600

. . , , " ", .

+1

memor_me cookie_lifetime 1 ,

 firewalls:
     secured_area:   
         remember_me:
            lifetime: 31536000 #1 year 
+1

Source: https://habr.com/ru/post/1611264/


All Articles