:: **Zploit** v1.0 | Current Path: **/home/kreativepixelz/finartindia.com/admin/**
:: Editing File: logout.php
<?php // 1. Start the session (required to access session data) session_start(); // 2. Unset all session variables (clears user data like ID, username, etc.) $_SESSION = array(); // 3. Destroy the session (removes the session from the server/storage) session_destroy(); // 4. Redirect the user to the login page (index.php) header("location: index.php"); exit; // exit; is crucial to stop script execution immediately after the redirect ?>