Answers for "php delete all session variables"

PHP
6

php unset session variable

// Destroy a sesion variable name 'variable_name' 
<?php
unset($_SESSION['variable_name']);
?>
Posted by: Guest on April-25-2020
3

clear session php

<?php
   unset($_SESSION['counter']);
?>
Posted by: Guest on June-30-2020
-2

php clear session

<?php
session_destroy();
?>
Posted by: Guest on March-08-2020

Code answers related to "php delete all session variables"

Browse Popular Code Answers by Language