remove session value by key code example Example: unset session key unset($_SESSION['variable_name']);