Bad SetCookie code or Bad Internet Explorer 4.0??

From: Date: Tue, 14 Aug 2001 22:21:33 +0000
Subject: Bad SetCookie code or Bad Internet Explorer 4.0??
Groups: php.general 
Request: Send a blank email to php-general+get-61920@lists.php.net to get a copy of this message
Here's the deal: I swear this code worked to set a Cookie on IE 4.0 for weeks. Now when I went back to the site, it isn't setting the cookie. I isolated the script into its own file with nothing else before or after and am still having no luck. <? if (! $ArtPrintSession && $CheckingOut != "1") { $temp1=date("U"); $temp2=getmypid(); $SessionID="s".strval($temp1).strval($temp2).strval(Rand()%1000); SetCookie("ArtPrintSession",$SessionID,time()+60*60*24,"/"); } print "$SessionID"; ?> Here's what I've tried: * Clearing the cache and erasing all other cookies. * Setting the Cookie rules to "Prompt" and then "Accept All" * Uploading this program to another website of mine which does successfully send cookies to IE 4.0. However, this script doesn't work. * Uplading the script to the server in both ASCII mode and BINARY mode. * Closing and restarting IE. Shutting down and rebooting the PC. * This script DOES work with NETSCAPE. Even when sent to "Prompt before accepting cookies", I don't get a reaction on IE. This same copy of IE is accepting cookies form other sites. I know it's going throught the IF statement because a $SessionID is generated and printed out. Is there a bug in the script, or is this an IE problem? Thanks, Jeff Gannaway ___________________________________________________________ Find the right art print for your home. * Search by artist, color, art style and subject. * Preview the art prints against your wall color. * Specializing in contemporary, abstract and African   American art. * Every day discounts on thousands of fine art prints. PopStreet.com is your avenue to art. http://www.popstreet.com ___________________________________________________________

« previous php.general (#61920) next »