its suprisingly simple to logout of a PHP based-system, I always thought it would be more complicated
Whatever method you use to login (sessions, cookies (which should only be used for 'Remember Me' functionality))..you do the opposite for logging out e.g. instead of creating a session you destroy/unset (unset(), session_destroy()) the current session (used when logging in). http://php.net/manual/en/function.session-destroy.php http://www.php.net/manual/en/function.unset.php