You are working on an online exam portal. To ensure that the user doesn't get the same session ID even if they retake the exam, what should you do at the beginning of each exam?
- Regenerate a New Session ID
- Use Local Storage for Session Management
- Maintain the Same Session ID
- Use Cookies for Session Management
To ensure that the user gets a new session ID for each exam attempt, it's crucial to "Regenerate a New Session ID" at the beginning of each exam. This prevents session re-use and maintains exam integrity.
Loading...
Related Quiz
- Which of the following is not a valid way to denote a comment in PHP?
- A common use case for the $_POST superglobal in PHP is to collect the form data after submitting an HTML form with ______.
- Which of the following are true about superglobals in PHP?
- In PHP, you can define a destructor in a class using the __destruct() keyword.
- The elseif statement in PHP can be used to test multiple conditions.