Re: [PHP4BETA] Cookies
| From: | Faisal Nasim | Date: | Thu, 24 Feb 2000 06:02:13 +0000 |
| Subject: | Re: [PHP4BETA] Cookies | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-10792@lists.php.net to get a copy of this message | ||
: I guess I also need to know how to check to see if a cookie exists? I am
: currently trying to read some literature on the subject but w/o to much
: luck.
Could use isset() too, but this will do the job:
if ( $HTTP_COOKIE_VARS['key'] )
{
# cookie is there AND has some value!
}
Enjoy!
P.S. I assume isset ( $HTTP_COOKIE_VARS ['key'] ) would
return true if the key exists in the array...
:
: Phil Allsopp wrote:
: >
: > At 10:51 23/02/2000 -0800, you wrote:
: > >Greetings All,
: > >
: > >I was wondering if there was a way to know if a person has disabled
: > >thier cookies in the browser they are using?
: > >
: > >Any help would be greatly appreciated.
: >
: > Set a cookie, refresh the page or redirect to another and see if the
cookie
: > then exists. If not provide an error message.
: >
: > Phil.