title: How to print session time remaining in php?
body: <p>I have a program in PHP and I want to print to the screen how much time the user has until their session expires. I want it to update when they reload the page.</p>
  
  <p>For example a simple message like this:</p>
  
  <blockquote>
    <p>Your session expires in 60 minutes</p>
  </blockquote>
  
  <p>...page reload...</p>
  
  <blockquote>
    <p>Your session expires in 59 minutes</p>
  </blockquote>
  
  <p>Also, how do I set the timeout value?</p>