How can we destroy the session, how can we unset the variable of a session?

session_destroy() destroys all of the data associated with the current session. It does not unset any of the global variables associated with the session, or unset the session cookie. To use the session variables again, session_start() has to be called.

The session_unset() function frees all session variables currently registered.