title: Yii::app()->user->id is not returning the empty result
body: <p>I've a problem, it might be a small one but I couldn't find the solution for this. Yii:app()->user->getId() or Yii:app()->user->id is not returning value. it just returning empty result. But I've set the id in my UserIdentity class.</p>
  
  <p>in my UserIdentity class I've this,</p>
  
  <pre><code>public function getId()
  {
     return $this-&gt;id;
  }
  </code></pre>
  
  <p>I'm setting id in the autheticate() function. if i displayed there itself it's displaying the id, but not in getId() function. Please help me in this.</p>
  
  <p>Thanks in advance.</p>
  
  <p>Dhanendran Rajagopal. </p>