Spaces:
Configuration error
Configuration error
Download logout.php from brucelloyd1/lost-found-tracker-pro: direct link, hf CLI and curl.
- Browser
- Download file 517 Bytes
-
https://huggingface.co/spaces/brucelloyd1/lost-found-tracker-pro/resolve/main/logout.php
- Command line
-
hf download hf://spaces/brucelloyd1/lost-found-tracker-pro/logout.php
-
curl -L -o logout.php https://huggingface.co/spaces/brucelloyd1/lost-found-tracker-pro/resolve/main/logout.php
517 Bytes
| ```php | |
| include 'includes/auth.php'; | |
| // Destroy all session data | |
| $_SESSION = array(); | |
| // If it's desired to kill the session, also delete the session cookie | |
| if (ini_get("session.use_cookies")) { | |
| $params = session_get_cookie_params(); | |
| setcookie(session_name(), '', time() - 42000, | |
| $params["path"], $params["domain"], | |
| $params["secure"], $params["httponly"] | |
| ); | |
| } | |
| // Finally, destroy the session | |
| session_destroy(); | |
| // Redirect to home page | |
| header("Location: home.php"); | |
| exit(); | |
| ``` |