title: Yii users being logged out after 15-30 minutes despite session timeouts being set to at least 1 day
body: <p>I've included the relevent parts of our Yii config file below:</p>
  
  <pre><code>return array(
  ...
      'components'=&gt;array(
          'session' =&gt; array(
              'timeout' =&gt; 86400,
          ),
          'user'=&gt;array(
              'allowAutoLogin' =&gt; true,
              'autoRenewCookie' =&gt; true,
              'authTimeout' =&gt; 31557600,
          ),
      ...
      ),
  ...
  );
  </code></pre>
  
  <p>I have also been into php.ini and set <code>session.gc_maxlifetime = 86400</code> but this still hasn't fixed the problem.</p>
  
  <p>Currently, Im absolutely at a loss as to what else could be causing it to timeout and log the user out after roughly 15-30 minutes of inactivity. Ideally users should remain logged in for at least a day of inactivity (and beyond closing the browser window, browser preferences allowing).</p>
  
  <p>I've trawled google, Yii and stack overflow and just can't find anything that I'm overlooking... but clearly I am overlooking something. If anyone can help me out I'd be very grateful.</p>
  
  <hr>
  
  <p>A sample of typical code that we are using to log in the users was requested and is included below:</p>
  
  <pre><code>$identity = new UserIdentity('facebook', $id, $user-&gt;name, $user-&gt;email);
  $loggedIn = Yii::app()-&gt;user-&gt;login($identity);
  $this-&gt;subscriptionChecker-&gt;updateCurrentUserSubscribed();
  </code></pre>
  
  <p>This is pretty typical of any time that <code>Yii::app()-&gt;user-&gt;login()</code> is called</p>
  
  <hr>
  
  <p>From Chrome, here are the cookies I have for the site and their expiries (after clearing all cookies and just logging in):</p>
  
  <pre><code>PHPSESSID expires When the browsing session ends
  
  // I'm informed these are set by google analytics  
  __utma created Friday, 12 October 2012 14:05:31 expires Sunday, 12 October 2014 14:05:31
  
  __utmb created Friday 12 October 2012 14:05:31 expires Friday 12 October 2012 14:35:31,
  
  __utmc created Friday, 12 October 2012 14:05:31 expires When the browsing session ends
  
  __utmz created Friday 12 October 2012 14:05:31 expires Saturday 13 April 2013 02:05:31  
  // end google analytics
  </code></pre>