title: Yii 1.1x logs out the user before session timeout
body: <p>I'm using Yii 1.1.13 and despite the session timeout is set to 1 day (<code>session.gc_maxlifetime = 86400</code> in <em>php.ini</em>) Yii logs out the user after ~24 mins. It doesn't even redirect to the login page, only when the user would navigate to another page. </p>
  
  <p>I set these in the login function:</p>
  
  <pre><code>    $duration = Yii::app()-&gt;getSession()-&gt;getTimeout();
      Yii::app()-&gt;user-&gt;login($this-&gt;_identity,$duration);
  </code></pre>
  
  <p>(the <code>Yii::app()-&gt;getSession()-&gt;getTimeout()</code> call gives back the right time, that is <em>86400</em>)</p>
  
  <p>I also set the cookie lifetime to this value:</p>
  
  <pre><code>Yii::app()-&gt;request-&gt;cookies['PHPSESSID']-&gt;expire = Yii::app()-&gt;getSession()-&gt;getTimeout();
  </code></pre>
  
  <p>but the bug still appears.</p>
  
  <p>Thank you in advance for your helping answers.</p>