The answer is there. You just cannot unset authenication variables becuase they are stored with the client. You can however send HTTP headers which tell the browser that it should delete the credentials.
You can always you the built in PHP sessions, which are a lot more powerful.