[Server][Controller] Add function logout().