SyntaxFix
Write A Post
Hire A Developer
Questions
unset is a function, not an operator. Use it like unset($_SESSION['key']); to unset that session key. You can, however, use session_destroy(); as well. (Make sure to start the session with session_start(); as well)
unset
unset($_SESSION['key']);
session_destroy();
session_start();