PHP - Sessions and Cookies
Identify the error in the following code snippet that aims to destroy a session:
session_unset(); session_destroy();
session_unset(); session_destroy();
session_start() must be called to initialize the session.session_unset() and session_destroy() without starting the session, which causes errors or unexpected behavior.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions