use hasSession, kill NoSessionException