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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to