title: php symfony 1.4: how to redirect with csrf token
body: <p>i want to redirect from action <code>a</code> to action <code>b</code> in the same module. Action <code>b</code> requires csrf token to execute, and i need to pass it a few parameters as well.</p>
  
  <p>action a:</p>
  
  <pre><code>public function executeA(sfWebRequest $request){
  
     //... do stuff
  
     $this-&gt;redirect('module/b?id='.$something-&gt;getId());
  
  }
  </code></pre>
  
  <p>action b:</p>
  
  <pre><code>public function executeB(sfWebRequest $request){
  
     $request-&gt;checkCSRFProtection(); //morte
  
     $something_id = $request-&gt;getParameter('id');
     //... do stuff
  
  }
  </code></pre>
  
  <p>the action <code>b</code> executes, only if clicked on anchor created by <code>link_to('module/b?id='.$something.getId() , array('method' =&gt; 'post'))</code> or any other method, because it sends csrf token with the request.</p>
  
  <p>i tried <code>$this-&gt;forward()</code> and <code>$this-&gt;redirect()</code> methods, and tried to add <code>'method' =&gt; 'post'</code> to redirect params like in <code>link_to()</code> , but nothing works, and i cant find anything about it on the web either. API documentation says noting about it. all i get is </p>
  
  <pre><code> 500 | Internal Server Error | sfValidatorErrorSchema
  _csrf_token [Required.]
  </code></pre>
  
  <p>error. it fails on the line marked <code>//morte</code>. please, does anyone know, how to do this properly, and also in cases that i want to redirect to other module?</p>