Log in

View Full Version : HTTP_COOKIE_VARS variable..


aliraqi
01-20-2002, 08:58 AM
Hi All,

In showthread.php I noticed the variable:

$HTTP_COOKIE_VARS['pollvoted'][$pollid]

that basically shows if someone has voted.

I wanted to use this variable in another outside script but have no idea where it was initialised, ive done a search on every single vb file.

Can anyone give me some hints or what file to include?

Thanks in advance

Admin
01-20-2002, 10:36 AM
You mean where the cookie gets set? This line in poll.php:
vbsetcookie("pollvoted[$pollid]",1,1);
(didn't look very hard, did you? ;) :))

You can use that cookie in any of your PHP scripts.