More robust tmpfilecookiemanager