title: Quick question about sessions in PHP
body: <p>Sessions are started via <code>session_start()</code>, I realize that much, but to make sessions persistent, they need an ID.</p>
  
  <p>Now, the php.ini file has a setting:</p>
  
  <pre><code>session.use_cookies = 1
  </code></pre>
  
  <p>So I don't have to pass the ID around. But there's another setting:</p>
  
  <pre><code>; Lifetime in seconds of cookie or, if 0, until browser is restarted.
  session.cookie_lifetime = 0
  </code></pre>
  
  <p>Am I to understand that if I implement this and go to my website, login, do what I wanna do, shut the browser down and start it again some time later, that I won't be logged in anymore when I go back to my site?</p>
  
  <p>EDIT: So to stay logged in, I will have to combine this with client-side cookies.</p>
  
  <p>I'm guessing I'll need 2 database fields. 1 for the sessions ID, 1 for the ID I give to the cookie.</p>