You can set a single cookie with the username and password, delimited somehow, and parse it yourself. Or use something like CGI::Cookie.

BUT

Just to drive it home: