From my understanding a cookie jar is just a place that holds all your cookie information. Someone may want to expand on this...
As far as modules that will accomplish your task, I would recommed looking at
WWW::Mechanize or it's super class
LWP::UserAgent. Both will do what you want. If not, you'll have so share your problematic code.