check for cookie

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
benyboi
Forum Commoner
Posts: 80
Joined: Sat Feb 24, 2007 5:37 am

check for cookie

Post by benyboi »

is there a way to check for a phpbb3 cookie?

i use

Code: Select all

$ref=($_SERVER['HTTP_REFERER']);
to check referer but also need to check cookie to see if someone is logged in?

thanks
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

there's a ton of phpbb integration stuff out there - there are many examples on Google.
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

Namely, $_COOKIE, only if the phpbb installation exists on the same domain (and probably directory) from which you are checking its cookie.
Post Reply