Answers for "remove value from 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

Code answers related to "remove value from session"

Browse Popular Code Answers by Language