Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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.

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 contemplating the Monastery: (1)
As of 2016-08-30 02:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (410 votes). Check out past polls.