Set session if it hasn't been set already, such as on acceptance tests.