title: PHP session expiring too early
body: <p>I have an issue, my apps sessions are expiring unexpectedly after about 15 minutes. I need them to expire after 4 hours.</p>
  
  <p>The server is Centos 5.5, PHP is 5.3.2. </p>
  
  <p>Below is my code (included in an global header).</p>
  
  <pre><code>&lt;?php
  session_name('MobileSuiteHQ');
  if(!session_id()) {
      session_start();
  }
  ini_set('memory_limit', '512M');
  ini_set('session.gc_maxlifetime', 14400000);
  ini_set('session.cookie_lifetime', 14400000);
  ini_set('session.gc_divisor', 1000);
  ini_set('session.use_cookies', 0);
  ini_set('max_execution_time', 300);
  ini_set('session.name','MobileSuiteHQ');
  ?&gt;
  </code></pre>
  
  <p>My .htaccess file contains:</p>
  
  <pre><code>php_value session.gc_maxlifetime 14400000
  php_value session.cookie_lifetime 14400000
  php_value session.use_cookies 0
  php_value session.gc_divisor 1000
  </code></pre>
  
  <p>Any help or insight would be greatful.</p>
  
  <p>EDIT: I was unable to login when i updated my .htaccess file, the session wasn't starting. So I have now removed: </p>
  
  <pre><code>php_value session.use_cookies 0
  </code></pre>
  
  <p>which now allows me to login.</p>