Answers for "remove item on session"

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

Regenerate session ID and remove all session data

$request->session()->invalidate();
Posted by: Guest on May-25-2021

Browse Popular Code Answers by Language