Fix bug: start session for logout function