Re: COOKIES, COOKIES!!!!!

From: Date: Tue, 18 Jul 2000 15:37:00 +0000
Subject: Re: COOKIES, COOKIES!!!!!
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24962@lists.php.net to get a copy of this message
"Bosco Martins" <rio01@terra.com.br> wrote... > The problem is that, when I set a cookie, I can´t retrieve it later. > The cookie is created like follows (and I can see it in the directory): > > $cookie=$variable > setcookie(cookie,$cript,time()+600,"/","",1); > > In the next page, I want to retrieve it, and I tried: > > $cookie=$HTTP_COOKIE_VARS["cookie"]; // Didn´t work. You have set the 'secure' parameter to 1, which the manual says indicates that the cookie should only be returned over secure connections. Are you accessing your page using HTTPS ? If not, use 0 for the 'secure' parameter, or omit it.

« previous php.dev (#24962) next »