in reply to Unable to set cookies for specific domain

".domainname" actually means "any subdomain of domainname". It doesn't include domainname. Remove the dot.

Another solution is to make example.com(.*) redirect to www.example.com$1.

Replies are listed 'Best First'.
Re^2: Unable to set cookies for specific domain
by bradcathey (Prior) on Mar 23, 2009 at 16:24 UTC

    Thanks ikegami, but setting the domain param to -domain => domainname.com replicated the failed result. I tried forcing -domain => www.domainname.com and it wouldn't even write the cookie. So, basically, no domain param seems to work, which strikes me as strange.

    And unfortunately, the redirect will not work because I'm hosting multiples sites all using the same code with relative paths and HTML::Template.

    That said, I tried a redirect in the HTML, but even that didn't work unless the URI was specifically domainname.com/admin/index.html, which also seems strange.

    Update: See my resolution in the above OP

    —Brad
    "The important work of moving the world forward does not wait to be done by perfect men." George Eliot