Answers for "session unset"

PHP
6

session unset

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

unset session in php

session_unset();    //Destrol all session variables
Posted by: Guest on December-04-2020
-2

php clear session

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

learn difference between session unset and session destroy

session unset: unset($_SESSION['id']);	//remove perticular session variable
session destroy: session_destroy();		//remove all session variable
Posted by: Guest on August-25-2021

Browse Popular Code Answers by Language