Re: Weirdness with setcookie() (3rd time - come on people :)

From: Date: Tue, 14 Nov 2000 02:23:50 +0000
Subject: Re: Weirdness with setcookie() (3rd time - come on people :)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25095@lists.php.net to get a copy of this message
On Mon, 13 Nov 2000 18:12:00 -0800 (PST), Joao Prado Maia (jmaia@kefta.com) wrote: >On Mon, 13 Nov 2000, Mark Maggelet wrote: > >> here's some things to check: >> 1) are cookies turned on? (obviously) >> 2) the specs I've seen say to use a full url >> >> ("http://www.mydomain.com/admin/another_file.php") you >> might want >>to >> try that. >> 3) is another_file.php in /admin/ ? if not the cookie doesn't get >> sent with the request. > >Mark, > >1) Yes, the same site has another section with a "user login" >feature, and >the cookie there is being set. > >2) Indeed. However, I tried using include("another_file.php"), which >should also work, and the cookie is not being set. well, when you include() it, the cookie wouldn't be set because the browser hasn't had a chance to send it yet. one more thing to try is your GPC order, could a post value be sneaking in there? On another_file.php try something like this: <? echo "cookie =>".$HTTP_COOKIE_VARS["admin_cookie"]."<br>"; echo "non-cookie =>".$admin_cookie; ?> >3) Yes it is. > >Thanks, >Joao > >-- >Joao Prado Maia >Web Developer >Kefta, Inc. >T: (415) 391-6881 ext 8008 >F: (415) 391-7079 > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list- >admin@lists.php.net

« previous php.general (#25095) next »