I had a problem with symfony2 session component. I set some data to session through session container like this:
$sess = $this->get( 'session' );
$sess->set( 'some_key', 'some_value' );
But after a little bit of time (about 15-20 minutes) the session got lost.
Can I set session life time parameter? The perfect variant for me would be if I can set certain time of session live period...Can anybody please help?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…