in reply to Re: Re: Warn people who have perlmonks in a URL?
in thread Warn people who have perlmonks in a URL?

Note that if you are logged into perlmonks.org and a link takes you to www.perlmonks.org it will work just fine. It's only the other direction that breaks

What you're seeing is the domain value of the cookie (see CGI::Cookie). By default, the domain is the machine you're on. You can explicitly set if anywhere up your food chain. So, as an example - www.perlmonks.org can set it's domain value to perlmonks.org but perlmonks.org cannot set it's domain value to www.perlmonks.org. If you log into perlmonks.org, www.perlmonks.org can see the cookie.

Oren
  • Comment on Re: Re: Re: Warn people who have perlmonks in a URL?

Replies are listed 'Best First'.
Re: Re: Re: Re: Warn people who have perlmonks in a URL?
by sauoq (Abbot) on Nov 09, 2003 at 04:51 UTC
    What you're seeing is the domain value of the cookie (see CGI::Cookie).

    Yes, exactly. And that's what I meant when I said, "Apparently, the cookie sent is dependent on the server requested. It might be better to always send a cookie for the domain instead."

    When the cookie's domain attribute is set to the domain name of the server, the cookie is often referred to as a "domain cookie" and when it is set to the hostname, the cookie is sometimes called a "host cookie" or "server cookie".

    The word "domain" has dual meaning as one of the cookie attributes and as a DNS term.

    -sauoq
    "My two cents aren't worth a dime.";