title: How to keep a PHP session active even if the browser is closed?
body: <p>How can I keep the user's session active, even if they accidentally closed their browser. Like in Facebook for example.</p>
  <p>If you log in to their site and you close the tab or the browser, when you open a browser again and visits Facebook, they will automatically detect the active user and will not redirect you to the log in page.</p>
  <p>How do I do that?</p>