only generate a global session when requested