When do sessions end?
- When the browser is closed
- After a specified time period
- When the server is restarted
- All of the above
Sessions can end when the browser is closed, after a specified time period of inactivity, or when the server is restarted, depending on the session configuration. Learn more: http://php.net/manual/en/session.configuration.php
Loading...
Related Quiz
- What are some common uses of the $_COOKIE superglobal array in PHP?
- Which of the following are true about the else statement in PHP?
- You are writing a PHP script and you want to execute a block of code a certain number of times. Which type of loop would you use and why?
- In PHP, you can upload a file using an HTML form and the POST method, and you can access the uploaded file information using the $_FILES ______ array.
- In PHP, the ______ function checks if a constant with a given name exists.