fix issue: security manager does not allow second session