title: Laravel 5 - User not logout after session lifetime
body: <p>I'm on <code>Laravel 5.7</code> and trying to get it so that my session expires and logs me out after 2 minutes. </p>
  
  <p>In my <code>session.php</code> file i did:</p>
  
  <pre><code>'lifetime' =&gt; 2,
  
  'expire_on_close' =&gt; false,
  </code></pre>
  
  <p>I will then leave my computer for example like 15 minutes, come back, refresh, and I'm still logged in?</p>
  
  <p>Can you tell me why and how to fix it. Many thanks.</p>
  
  <hr />
  
  <p>Ok I've figured it out.</p>
  
  <p>The reason is I'm using Auth::logoutOtherDevices in Login function, and this function automatically generates the remember me cookie.</p>
  
  <p>Thank you guys so much.</p>