php session time out default code example Example: php session time out default The default lifetime of a session in PHP is 1440 seconds, or 24 minutes