ahhh. a combination of incorrect timezone on my new laptop and the server
time being slightly out was causing my head a lot of pain...
thanks for the pointer,
Jav
>From: Marco Tabini <[EMAIL PROTECTED]>
>To: Javier Montserat <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: [PHP] weird IE cookie problem
>Date: 14 Oct 2002 13:44:25 -0400
>
>Is the time set properly on your machine? Double check both the time AND
>the timezone. I went nuts trying to fix a similar problem once just to
>find out that someone had changed the timezone on the PC for a test and
>then forgot to put it back.
>
>
>On Mon, 2002-10-14 at 13:25, Javier Montserat wrote:
> > Hi
> >
> > I've successfully been using the following code to set cookies in IE /
>NS /
> > Mozilla. I've just bought a new laptop and in IE 5.5 and 6 the cookies
>are
> > not being set by my site. Other sites (msn etc) set cookies fine. I've
> > installed Mozilla and this accepts cookies fine. WTF is wrong with IE
>on
> > this new machine...???
> >
> > Has anyone encountered anything like this...???
> >
> > Here's the code -
> >
> > $cookiename = "test";
> > $value = "testvalue";
> > $expires = time()+3600;
> > $domain = "mydomain.com";
> > $path = "/";
> >
> > $COOKIE = "Set-Cookie: $cookiename=$value";
> >
> > if (isset($expires) && ($expires > 0)) {
> > $COOKIE .= "; EXPIRES=".
> > gmdate("D, d M Y H:i:s",$expires) .
> > " GMT";}
> > if (isset($domain)) { $COOKIE .= "; DOMAIN=$domain"; }
> > if (isset($path)) { $COOKIE .= "; PATH=$path"; }
> > if (isset($secure) && $secure>0) { $COOKIE .= ";
> > SECURE"; }
> > header($COOKIE,false);
> >
> > // this doesn't work either ...
> > setcookie ( $cookiename , $value, $expires, $path, $domain);
> >
> >
> > _________________________________________________________________
> > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php