Cookies

From: Date: Fri, 01 Feb 2002 20:54:31 +0000
Subject: Cookies
Groups: php.windows 
Request: Send a blank email to php-windows+get-11783@lists.php.net to get a copy of this message
I have a WebSpeed page that is passing to my php page. They are using session cookies to test for login status. I didn't think there was anyway for me to test for a session cookie set by another language using php. So I had them create an additional client cookie for me to test by. Not only did my scripts not detect the cookie on my machine, but when I echo out the size of $HTML_COOKIE_VARS it says 1 (even though I have 50 cookies on my machine) and item 0 of the array is empty when I echo that out. Why isn't the traditional way of grabbing cookies working, and is there any way for me to utilize the session cookies that Webspeed set. P.S. I am using IE 6.0 if that makes any difference Angie Top of script BEFORE any html headers: <?php $cookie = $HTTP_COOKIE_VARS["aa_login"]; //is null even though //cookie present and //with that name echo $cookie; echo sizeof($HTTP_COOKIE_VARS); // echo's out 1 ?>

« previous php.windows (#11783) next »