RE: [PHP-WIN] trouble with cookies

From: Date: Wed, 02 May 2001 23:23:50 +0000
Subject: RE: [PHP-WIN] trouble with cookies
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-7233@lists.php.net to get a copy of this message
One thing that I've come across when dealing with cookies, which is documented at: http://www.php.net/manual/en/function.setcookie.php, is the fact that the cookie won't show up until the document is refreshed. Are you trying to pull the cookie vals. right after your setcookie() command? > -----Original Message----- > From: r.gelstharp [mailto:r.gelstharp@ntlworld.com] > Sent: May 2, 2001 4:46 PM > To: php-windows@lists.php.net > Subject: Re: [PHP-WIN] trouble with cookies > > > 1)hmmm, I'm using Internet Explorer, and when I created cookies with ASP > they seemed to work, so it can't be that. > > 2)This might be the answer, but when you specify the domain in > setcookie as > ".." doesn't that mean that you set it to the default which is > the host name > of the server, and therefore since the PHP file/s I'm using are all in the > root directory shouldn't it work? > 3)Them being stubborn would seem to be the answer here it seems. I've had > enough trouble with trying to get my PHP stuff up and running in > time as is > without this to add to it. > > Looks like I'll just have to try passing them as regular variables or > something instead. > > Thanks all. But please don't stop with any recommendations you have. > > Hubert Olivier <huberto@mail.transc.com> wrote in message > news:4.1.20010502182112.009a8a80@colvir.net... > > This might be caused by several factors. Here are the ones I remember: > > > > 1) The browser you are using simply does not accept cookies > > 2) The PHP file trying to read info from the cookie with the isset () > > function is not located within the domain specified in the setcookie() > function > > 3) There is indeed a configuration problem with PHP/Apache. But as Flint > > mentionned, cookies are a tough lot, so it's rather unlikely. > > > > Hope this helps! > > > > Olivier > > > > At 23:18 2001-05-02 +0100, r.gelstharp wrote: > > >The trouble I'm having is simply that I'm using the > setcookie() function, > > >and it doesn't seem to be setting the cookies. I know this > because I use > the > > >isset() function to check on all the pages that use the > cookies plus I've > > >used $HTTP_COOKIE_VARS to check also. It just ain't doin' it. > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > > For additional commands, e-mail: php-windows-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.windows (#7233) next »