Opposite the way you logged in. If you use sessions, start the session, reset $_SESSION to an array() and then destroy the session.
If you use cookies, destroy the cookie after setting all values in it to 0 or Null.
If you use database access, set the values of "logged in" to default, or remove them from the active users table.