[fix]endsession on in online mode