clear session php
snippet in php

clear session php

user3866

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

php delete session

user2409

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

php clear session

user1391

<?php
session_destroy();
?>