Gossamer Forum
Home : General : Perl Programming :

Share cookie on multi domain

Quote Reply
Share cookie on multi domain
Hi all,

How can I use cookie on multi domains(using javascript)?

For example if I use username variable on abcdefggh.com I want to retrieve this variable on ijklmnddd.com.

Thanks in advance,

Beck
Quote Reply
Re: [Beck] Share cookie on multi domain In reply to
I don't believe you can. If you set a domain on a cookie, then the browser will only send that cookie to servers on that domain. If you don't set a domain, then the browser will automatically set the domain to whatever the server's domain is.

Using javascript to do this on the otherhand, I wouldn't know since I don't know anything about javascript Smile

Adrian
Quote Reply
Re: [Beck] Share cookie on multi domain In reply to
Yeah I doubt it's possible otherwise everyone would be stealing each others visitors cookies :)

Last edited by:

RedRum: Jan 11, 2002, 11:08 AM