The logout is executed by the KTH logout function run when you enter that page.