title: PHP query inactive minutes counting toward session timeout
body: <p>There is much information available about how to detect if a PHP session has already expired. To quote from one of the many well-written articles:</p>
  
  <blockquote>
    <p>The session.gc_maxlifetime PHP.ini directive controls how long a session is allowed to exists before it is considered garbage and is cleaned up. Every call to the session_start() function has a chance to trigger the garbage collection routine. <a href="https://bytes.com/topic/php/insights/889606-setting-timeout-php-sessions" rel="nofollow noreferrer">Source</a></p>
  </blockquote>
  
  <p><strong>But is there any way to query where the inactivity timer is at?</strong></p>
  
  <p>Sure, I can set up my own inactivity tracker, but since the server is already trackng that number, is there any way to check that?</p>
  
  <p>Note: I seek a methodology that will work with a shared hosting CPANEL account.</p>