Re: COOKIE Question.
| From: | Leif K-Brooks | Date: | Tue, 17 Sep 2002 07:15:14 +0000 |
| Subject: | Re: COOKIE Question. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116598@lists.php.net to get a copy of this message | ||
First of all, the second try should be print $_COOKIE["Access"]; with no second $. But, more importantly, I would reccomend you change the cookie name to access. This may not be the problem, but case in names seems to generally cause problems.
Tom Ray wrote:
I'm having some issue's with $_COOKIE and $HTTP_COOKIE_VARS, I can't seem to retrieve data from them. First I set the cookie like so: setcookie ("Access", "Test_Value",time()+31536000); Then I check my Cookies in Netscape and I can see that I have the cookie stored. But when I go to the page that has print $HTTP_COOKIE_VARS["Access"]; print $_COOKIE["$Access"]; and even print "$Access"; I don't get the value set in the cookie, and I don't know why...any help, please?