Silex don't register the session after login
<p>My Silex App is working fine, but I'm having a problem at the moment of create the SESSION with the USER.</p>

<p>It makes the auth well, because if user credentials are correct, then redirect to the main prompt as expected, and if credentials are wrong, still in the form.
But if I try to get the user information, it's empty.</p>

<pre><code>if (null !== $token) {
    $user = $token-&gt;getUser();
}
</code></pre>

<p>Well, the code I'm using in the app.php is the next:</p>

<pre><code>$app-&gt;register(new Silex\Provider\SecurityServiceProvider(), array(
    'security.firewalls' =&gt; array(
        'admin' =&gt; array(
            'remember_me'   =&gt; array(),
            'pattern' =&gt; '^/login/',
            'form' =&gt; array('login_path' =&gt; '/login', 'check_path' =&gt; '/login/login_check'),
            'logout' =&gt; array('logout_path' =&gt; '/login/logout', 'invalidate_session' =&gt; true),
            'users' =&gt; $app-&gt;share(function() use ($app) {
                return new Project\Controller\UserProvider($app['db']);
            }),
        ),
    )
));
</code></pre>

<p>Any idea?</p>