Problem Statement
Which function is used to destroy a session completely?
Explanation
The session_destroy function removes all session data stored on the server. It is often used during logout to clear the user’s session.
Code Solution
SolutionRead Only
session_destroy();
Practice Sets
This question appears in the following practice sets:
