What determines that you are logged in is the presence of your userID in a session variable. The logout page will destroy the session variables for you, once the userID is no longer in the session you are not logged in. There is no form or anything else needed to log out, you just need to visit the logout page.