Now I am confused! (again)

I used the following:

if (!isset($_COOKIE['x'])){
  $s=1;
  setcookie( 'x', '2', 2147483647, '/', '.mydomain.com');
} else {
  $s=2;
  $cook=$_COOKIE['x'];  
}
 
(with the correct domain name)
in a test file, to set an 'eternal' cookie.   It worked, and I could
read it's value back again.

However, I deleted the cookie from my Win98SE test machine.  The file
was in C:\WINDOWS\Cookies - but I can still read the value, an hour
later!  And the cookie is "set", because I am echoing $s as 2.

Why doesn't the cookie value disappear when I deleted it from the hard
disk?  And where is the value coming from now?

-- 
Pete Clark

http://www.hotcosta.com
http://www.spanishholidaybookings.com




Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to