I have created a simple login page which is based on the sessions.
session_start();
and added a logout page that contains this
to remove session variables - session_unset();
to destroy the session - session_destroy();
session_unset(); session_destroy();