fixed the session timeout when there is no remote IP