User submit form, but don't save until he register or login
<p>I have many forms that user fill on single page, but after user make post, controller will check if form is valid and if user is already logged in then save info.</p>

<p><strong>Need help with</strong></p>

<p>If user is not logged in, then redirect him to registration page where he sign up and after sign up he will be auto login, then it should come back to same controller with posted values so it can be saved.</p>

<ul>
<li><code>$form-&gt;isValid &amp;&amp; !$this-&gt;getUser()</code> then redirect user to sign up page with this form values saved in session?</li>
<li>after user sign up or login, then come back to previous controller (without any further action) it should auto saved the previously submitted form. since it was <code>$form-&gt;isValid()</code></li>
</ul>

<p>I'm confused, should I save form values in session and redirect? would it save model values properly?</p>

<p>Also how should I redirect user to registration page, while telling Symfony to come back to same page with post method after login.</p>