override setup_session method to support custome session management