code: def cookiejar(name='session'):
      
      log = logging.getLogger('ipsv.common.cookiejar')
      spath = os.path.join(config().get('Paths', 'Data'), '{n}.txt'.format(n=name))
      cj = cookielib.LWPCookieJar(spath)
      log.debug('Attempting to load session file: %s', spath)
      if os.path.exists(spath):
          try:
              cj.load()
              log.info('Successfully loaded a saved session / cookie file')
          except cookielib.LoadError as e:
              log.warn('Session / cookie file exists, but could not be loaded', exc_info=e)
  
      return cj
docs: Ready the CookieJar, loading a saved session if available
      @rtype: cookielib.LWPCookieJar