title: What is the default session expiration time in PHP?
body: <p>I have a web application that pings a database every minute or so to check for new entries. The page is designed to not really have any interaction with... You just keep it open and it displays things. The page is password protected, and the site can be up for a coupe days without anyone clicking in the web browser or anything. I've found after it's up for like a day or so it stops checking the database (through an Ajax request) and then if you refresh the page manually it brings you to the login page again. I'm assuming that's because the session which has the login information expires. I never set an expiration time, but does PHP automatically destroy the sessions after a certain amount of time? What do I do to fix this?</p>
  
  <p>Thanks</p>
  
  <p>Thanks for all the replies... Is there a way to set the session to never expire with out just changing the PHP settings themselves?</p>