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:[EMAIL PROTECTED]]
> Sent: May 2, 2001 4:46 PM
> To: [EMAIL PROTECTED]
> 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 <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> --
> PHP Windows 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 Windows 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]