fixed get session method