php session destroy
snippet in php

php delete session

user6610

session_destroy(); // To delete whole session
// OR
unset($_SESSION['myVar']); // To delete a session var

end session variable php

user601

// destroy the session
<?php
session_destroy();
?>

destroy session php

user4689

<?php 
 session_start(); // start session
 session_destroy();  // Delete whole session
// OR
unset($_SESSION['username']); // delete any specific session only
?>

php session destroy

user6298

<?php
// Destroy the currently active session.
session_destroy();
?>