What is the default session time in PHP?

  • 1440 seconds (24 minutes)
  • 3600 seconds (1 hour)
  • 1800 seconds (30 minutes)
  • 0 seconds (session lasts until browser is closed)
The default session time in PHP is 1440 seconds (24 minutes). After this duration of inactivity, the session will expire and the user will need to log in again. The session time can be modified using the session.gc_maxlifetime directive in the PHP configuration. Learn more: http://php.net/manual/en/session.configuration.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *