title: Laravel Session make a request without updating sessions expiry
body: <p>I'm displaying a front-end countdown of when the user's session will expire, I want to request the time left without updating it.</p>
  
  <p>Here's what I have so far:</p>
  
  <pre><code>$ttl = Redis::ttl(config('cache.prefix') . ':' . Session::getId());
  return response()-&gt;json($ttl);
  </code></pre>
  
  <p>Each time this is requested the ttl is reset back to the <code>session.lifetime</code> value.</p>