title: set up session lifetime in php
body: <p>How can you set up php session variable to be destroyed after let's say hour? I was searching web but I found very different opinions and non of them was helping much.Thank you...</p>
  
  <p>like let's say I have two variables </p>
  
  <pre><code>$_SESSION["loged"];
  $_SESSION["user"];
  </code></pre>
  
  <p>And I want them to be still there after browser is closed for 2 more hours.</p>