[fix] logout bug and session bug