title: Session is not working in redirect in symfony 1.2
body: <p><strong>Problem</strong>: I set a variable in session before redirection, and it is not working after redirection (in success PHP file)</p>
  
  <ul>
  <li>I have used symfony setflash/getflash ,session but none method works.</li>
  </ul>
  
  <p><strong>Code</strong>:
   controller:</p>
  
  <pre><code>function abc()
  {
      $bold_message="&lt;b&gt;".$gnotes_message-&gt;getGnoNote()."&lt;/b&gt;&lt;br&gt;";
      echo $_SESSION["msge"] =$bold_message;
      $this-&gt;getUser()-&gt;setFlash('message', $bold_message,true);
      $this-&gt;getUser()-&gt;setAttribute('msg',$bold_message);
      var_dump($_SESSION["msg"]);die;//output : some message
  
      return $this-&gt;redirect('@homepage');
  }
  </code></pre>
  
  <p>signinsucces view file</p>
  
  <pre><code>&lt;?php  var_dump($_SESSION['msge']); die("halt");//output: NULL
  
   if ($sf_user-&gt;hasFlash('message')): ?&gt;
     &lt;div class="flash_error"&gt;&lt;p&gt;&lt;?php echo $sf_user-&gt;getFlash('message') ?&gt;       &lt;/p&gt;&lt;/div&gt;
  </code></pre>
  
  <p>
            </p>
  
  <pre><code>   &lt;?php echo $sf_user-&gt;getFlash('error') ?&gt;           
       &lt;/div&gt;
  </code></pre>
  
  <ul>
  <li>I Have tried simple core concept of setting session in php i.e. <code>$_session</code></li>
  <li><p>but after redirect session and setflash not working</p></li>
  <li><p>I have checked this thread: <a href="https://stackoverflow.com/questions/5229494/symfony-pass-parameter-between-actions-with-a-redirect">Symfony: pass parameter between actions (with a redirect)</a></p></li>
  </ul>
  
  <p><strong>What I need</strong> is to get access session in success.php file:</p>
  
  <pre><code>$this-&gt;getUser()-&gt;getAttribute('msg');
  </code></pre>