Fixed authentication using cookiejar