New logout function (basic auth, not for IE)