Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Re: Warn people who have perlmonks in a URL?

by pinetree (Scribe)
on Nov 09, 2003 at 03:35 UTC ( [id://305625]=note: print w/replies, xml ) Need Help??


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.";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://305625]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-04-18 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found