title: PHP Sessions expiry time - keeping session alive for a specific number of minutes/hours/days
body: <p>I have a site that creates a Session for shopping carts.</p>
  
  <pre><code>$_SESSION['cart']=array();
  </code></pre>
  
  <p>It seems as if the server automatically kills the session after X time of inactivity, I assume this is set in php.ini (but my host does not grant me access, they just let me tell them the changes, so I cannot play around! :().</p>
  
  <p>Is there a better way to keep the sessions alive for example for 2 days or for a specific number of minutes/hours?</p>