symfony2 session lifetime

后端 未结 3 593
灰色年华
灰色年华 2020-11-30 03:56

I had a problem with symfony2 session component. I set some data to session through session container like this:

$sess = $this->get( \'session\' );
$sess-         


        
3条回答
  •  无人及你
    2020-11-30 04:39

    To work comfortably you can set in dev environment a cookie_lifetime to 0, it means the cookie expires when the browser is closed.

    File: config_dev.php

      framework:
            session:
                cookie_lifetime: 0
    

提交回复
热议问题