ECMS-5041 remove the wrong usage of session.logout()