Re: IE5 Windows and setcookie

From: Date: Wed, 12 Jul 2000 09:52:11 +0000
Subject: Re: IE5 Windows and setcookie
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-6020@lists.php.net to get a copy of this message
try taking off the path and domain and expiration you really dont need that stuff.. and you're just making it sloppier ryan ----- Original Message ----- From: Ed Trefzger <ed@yellowdog.com> To: <php-general@lists.php.net> Sent: Tuesday, July 11, 2000 4:35 PM Subject: [PHP] IE5 Windows and setcookie > Does anybody have any tips on IE5 Windows and setcookie? I have gone > through and eliminated linefeeds and carriage returns. I have also > reviewed settings within the browser. I have tried it on NT4 and > Win95. > > Cookies are set properly in Netscape on Windows, Mac, and Linux, and > IE5 on the Mac. > > Here is the code: > > if ($remember_userID) > { > $expires = $now + 946684800; // 30 years > } > $userpluskey = $userID . HASH_KEY; // create hash > $userhash = md5($userpluskey); > > setcookie("userID","$userID","$expires","/","www.mydomainname.com"); > > setcookie("userIDcode","$userhash","$expires","/","www.mydomainname.com"); > > // redirect to previous page > $location = "$base_url/$ref_screen"; // these are set above > header("Location: $location"); > > I am at my wits end on this. Has anybody found a solution to this? > > TIA, > Ed > -- > Ed Trefzger <ed@yellowdog.com> > Yellow Dog Communications Inc. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#6020) next »