RE: [PHP-WIN] trouble with cookies
| From: | Ignatius Teo | Date: | Wed, 02 May 2001 23:11:58 +0000 |
| Subject: | RE: [PHP-WIN] trouble with cookies | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-7232@lists.php.net to get a copy of this message | ||
How are you setting the cookie? And what are you doing after you set the
cookie?
Note that the cookie "
will not become visible until the next loading of a
page that the cookie should be visible for
" (c.f.
http://www.php.net/manual/en/ function.setcookie.php).
HTH,
Ignatius Teo
-----Original Message-----
From: r.gelstharp [mailto:r.gelstharp@ntlworld.com]
Sent: Thursday, 3 May 2001 08:46
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