silexphp/Silex — pull request #916 by neeg (2014-03-04 07:51:49+00:00)
Title: Support optional session invalidation on logout

Avoid session destroying on logout by adding "invalidate_session: false" in your configuration e.g.

$app['security.firewalls'] = array(
[...]
'logout' => array(
'logout_path' => '/user/logout',
'target_url' => '/logout',
'invalidate_session' => false
),
[...]
);