title: Yii can't access session variables
body: <p>My problem: I can't access session data in the view, which I tried to save in the controller before rendering the view.
  In my opinion there's an error when storing the session data. (It's necessary for me to modify the session data after creating it, not only in the single action.)</p>
  
  <p><strong>ProcessController.php</strong></p>
  
  <pre><code>public function actionNew() {
  
      $formhash = md5(time());
      $hashList = array();
      $hashList[$formhash]['processingNumber'] = '';
      //fill with empty model
      $hashList[$formhash]['model'] = $this-&gt;loadModel();
      //store hashList in session
      Yii::app()-&gt;session['hashList'] = $hashList;
  
      $this-&gt;render('/process', array('hashValue =&gt; $formHash));
  </code></pre>
  
  <p>}</p>
  
  <p>Now in the view I need the data from the session to show them to the user. But when dumping the hashList it just dumps "null" (Maybe because the saving in the controller didn't went well).</p>
  
  <p><strong>process.php</strong></p>
  
  <pre><code>&lt;?php
  $form = this-&gt;beginWidget('CActiveForm', array(
      'id' =&gt; 'process_form',
      //several other things...
  ));
  //Output: null
  CVarDumper::dump(Yii::app()-&gt;session['hashList'],10,true);
  ?&gt;
  </code></pre>
  
  <p>I tried to use $_SESSION instead of Yii::app()->session, which gives me access to the data in the view. But when handling other actions in the Controller the $_SESSION variable is undefined.</p>
  
  <p>Any suggestions?</p>
  
  <p>Thank you.</p>