session_destroy function is used to code example
Example: php delete session
session_destroy(); // To delete whole session
// OR
unset($_SESSION['myVar']); // To delete a session var
session_destroy(); // To delete whole session
// OR
unset($_SESSION['myVar']); // To delete a session var