Answers for "session unset vs destroy"

PHP
6

session unset

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