unset session in php
snippet in php

php unset session variable

user4950

// Destroy a sesion variable name 'variable_name' 
<?php
unset($_SESSION['variable_name']);
?>

unset session in php

user8206

session_unset();    //Destrol all session variables

php clear session

user5009

<?php
session_destroy();
?>