core: ignore persistent session sets and gets calls if there is no session.