I have the following code at the moment:
tw_jar = cookielib.CookieJar()
tw_jar.set_cookie(c1)
tw_jar.set_cookie(c2)
o = urllib2.build_opener( urllib2.HTTPCookieProcessor(tw_jar) )
urllib2.install_opener( o )
Now I later in my code I don't want to use any of the cookies (Also new cookies created meanwhile).
Can I do a simple tw_jar.clear()
or do I need to build and install the opener again to get rid of all cookies used in the requests?