PHP - Sessions and Cookies
You want to completely log out a user by destroying the session and removing the session cookie. Which of the following code snippets correctly achieves this?
session_start() to initialize the session before modifying it.session_unset() to clear variables, then session_destroy() to end the session.setcookie() with the session name and a past expiration time to delete the cookie.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions