Answers for "How to Remove data from a 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 "How to Remove data from a session"

Browse Popular Code Answers by Language