Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Stupid Cookie Question

by converter (Priest)
on Feb 28, 2002 at 22:31 UTC ( #148411=note: print w/ replies, xml ) Need Help??


in reply to Stupid Cookie Question

The Unofficial Cookie FAQ has some good information on cookie implementation.

In a nutshell, make sure that the path and domain values aren't overly-restrictive. The domain field is evaluated right to left, so that ".example.com" would cause the client to transmit the cookie with requests to www.example.com, foo.example.com, etc. If the domain were specified as www.example.com, the client would not transmit the cookie with requests sent to foo.example.com.

As others have suggested, if you specify the path value as '/', the client will transmit the cookie for all requests as long as the domain field permits it.


Comment on Re: Stupid Cookie Question

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-08-02 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (54 votes), past polls