Snippets tagged “logout”
2 snippets use this tag.
- HTTP authentication logout via PHPPHP
To log out a user from HTTP authentication using PHP, you can use the header function to send a "WWW-Authenticate" header with a value of "Basic realm=realmName" and a 401 status code.
- proper way to logout from a session in PHPPHP
To properly log out of a session in PHP, you can use the session_destroy() function.