I am using two pages, one for login, one for logout. The latter one is restricted to logged-in users and is of type "Link to external Url", linking to something like /index.php?id={myLoginUid}&logintype=logout does the job.