test if existing session for xhr