Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bad SetCookie code or Bad Internet Explorer 4.0??

0 views
Skip to first unread message

Jeff Gannaway

unread,
Aug 14, 2001, 6:21:33 PM8/14/01
to php-g...@lists.php.net
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
___________________________________________________________

0 new messages