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
Loading...
Related Quiz
- You have a floating-point number in your PHP script and you need to round it to the nearest integer. How would you do this?
- How can you decode a JSON object into a PHP array?
- A PHP class can have more than one constructor.
- A constant of a PHP class can be accessed using the class name followed by the scope resolution operator (::) and the constant name.
- What are some common practices in PHP when dealing with multiple data filtering and validation?