Gossamer Forum
Home : General : Perl Programming :

cookie domain

Quote Reply
cookie domain
Hello!!

i'm working with 2 domains (myname.com and myname.net) but I'm having problems is sending a cookie which can be valid for both the domains.

I would set something like:

domain=>'.myname.*',

but it does not work :(
Also I tried to set two cookies - using both the domains - but it seems that the http host must be the same .. ;) Can you suggest me something?

Thanks.


Quote Reply
Re: cookie domain In reply to
You can only set/read cookies from one domainname.

So if both domains use the same IP you could try using the IP instead, or make an cookie-script thats sets the cookie and displays an image. And then you could include that "image" in both domains. I'm not sure if this will work 100% correctly; but i would say: just try!