Don't create a session before you need to.