session_start(); // session variables set here session_close(); // closes the session and releases variables
session_start(); // logout button pressed session_unset(); // unsets all session variables session_destroy(); // destroys the sessionThe PHP session_close() function is a built-in function and does not require any external package or library.