get url from session object prior to closing session