title: Keep the user logged in, after the browser window has closed
body: <p>In my <code>app.php</code> I have:</p>
  
  <pre><code>'Session' =&gt; [
      'cookie' =&gt; 'app_sid',
      'defaults' =&gt; 'cake',
      'timeout' =&gt; 20160, // The session will timeout after 20160 minutes of inactivity
      'cookieTimeout' =&gt; 20160, // The session cookie will live for at most 2 weeks, this does not effect session timeouts
      'autoRegenerate' =&gt; TRUE
  ]
  </code></pre>
  
  <p>What I want to achieve, is to let the user be logged in regardless of their actions. This means that the user should stay logged in for 2 weeks unless he chooses to manually logout. Closing the browser window should not logout the server.</p>
  
  <p>Right now, when I'm closing the browser window, it logs-out the user.</p>
  
  <p>How can I prevent this?</p>