how to remove specified cookie in cookie jar?

ken ken.carlino at gmail.com
Sat Mar 31 05:59:50 CEST 2007


How to remove specified cookie (via a given name) in cookie jar?

I have the following code, but how can I remove a specified cookie in
the cookie jar?
 cj = cookielib.LWPCookieJar()

 if cj is not None:
     if os.path.isfile(COOKIEFILE):
            print 'Loading Cookie--------------'
            cj.load(COOKIEFILE)




More information about the Python-list mailing list