Checking for cookies/session_existance.. very basic.
| From: | Chad Day | Date: | Wed, 29 Nov 2000 16:28:06 +0000 |
| Subject: | Checking for cookies/session_existance.. very basic. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-27827@lists.php.net to get a copy of this message | ||
I must be doing something very simple wrong.. I want to reject a user from
my site if they aren't using cookies (for lack of a better method right
now.. people who reject cookies can currently abuse the site I am working
on)..
I thought this code would do it:
(start session)
(register var)
if (!session_is_registered("my var")) {
exit();
}
but it doesn't work.. can someone clue me into what I'm doing wrong?
Thanks,
Chad Day
Beach Associates
When I speak german... I think german in my head... but like...Do skript
kiddies see a w40l3 8uncha 1's and 0's and 3's and 4's and 7's in their
h34d'5 w43n t43y R +a1k1n6 ? -- SirStanley