Answers for "delete session with key php"

PHP
3

php delete session

session_destroy(); // To delete whole session
// OR
unset($_SESSION['myVar']); // To delete a session var
Posted by: Guest on January-24-2020
0

unset session key

unset($_SESSION['variable_name']);
Posted by: Guest on January-28-2021

Browse Popular Code Answers by Language