11282007 0923 GMT-6

You write code to get the cookie data stored on their computer.

Something like this:

if(isset($_COOKIE['value'])) {
        print $_COOKIE['value'];
}

This checks to see if the cookie is set and if it is, it prints the value.

Wade

Pete wrote:
> I am trying to get my head around some Cookie coding.
> 
> I understand about setcookie and getcookie, and that the data is stored
> on the visitors hard disk between visits.
> 
> What I am wondering is this : when the visitor visits the site, is the
> cookie data automatically sent to the server, or does the server have to
> request it?  
> 
> Or, to put it another way, does a call to getcookie get data which has
> just been passed to the server, or is it a direct call to the visitors
> computer?
> 

Reply via email to