Re: Cookies

From: Date: Fri, 01 Feb 2002 21:20:52 +0000
Subject: Re: Cookies
Groups: php.windows 
Request: Send a blank email to php-windows+get-11786@lists.php.net to get a copy of this message
Sorry everyone, I had a brain spasm or something. I was reminded that cookies only work on the same domain, and since the webspeed scripts were creating the cookie on out test server and php was on the production server it was a no go. Thanks! Angie >>> "Angie Tollerson" <Tollerson@alliancetechnologies.net> 02/01/02 02:54PM >>> 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 ?> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#11786) next »