destroy session php
snippet in php

php delete session

user8473

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

end session variable php

user5324

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

destroy session php

user7082

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

php session destroy

user2757

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

php session variables

user3632

<?php
   session_start();
   $_SESSION['var'];
?>

php clear session

user924

<?php
session_destroy();
?>