Re: setcookie() woes

From: Date: Thu, 21 Jun 2001 02:13:27 +0000
Subject: Re: setcookie() woes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54656@lists.php.net to get a copy of this message
In my experience the understanding of SetCookie header differs form browser to browser so much that it's horrible. As far as I remember IE5.5 handled it correctly. IE5.0 didn't. Netscape I think did (not completely sure). In any case .. session-based cookies seem to work in all of them. just call setcookie($name, $value) and nothing more. If you can't live without permament cookies you have to somehow (via $USER_AGENT for example) differ the browsers and upon that use setcookie the way that specific browser expects (you still have to find out how each of them works and there are many more than just IE or Netscape and their fifferent versions). I remember for example that one browser needed domain name to work and other didn't want it all to work. Or something like that. Hope this helps. lenar. ps. I think setcookie() itself doesn't woe, just our great programmers at netsacpe and microsoft can't correctly read and understand that short and simple specification of cookies. "Chris" <chris@ooc2000.com> wrote in message news:5.0.2.1.0.20010620182436.026a2b20@www.carttest.com... > Hi all, > > I have a login script that works on one of my machines but not > another, and I've determined the problem has to do with setcookie(). > One machine is using IE 5.50 and another is using 5.00, and I assume > therein lies the problem. > > I've tried to plow through the dozens (hundreds?) of followups on the > manual page for setcookie(). Most of the interesting ones seem to > involve using header("SetCookie . . .") instead of the setcookie() > function. I tried a few, including the > pass-every-parameter-to-setcookie-even-if-you're-not-really-using-them > workaround, to no avail. > > Is this a well known problem, with a well known solution? > > Thanks, > Chris > > > -- > 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 (#54656) next »