php delete session
snippet in php

clear session php

user270

<?php
   unset($_SESSION['counter']);
?>

php delete session

user5487

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

destroy session php

user1282

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