// for a single variable
unset($_SESSION['session_var']);
// destroy the Session, not just the data stored!
session_destroy();
// delete the session contents, but keep the session_id and name:
session_unset();
Run Code Online (Sandbox Code Playgroud)