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
nincha
Forum Contributor
Posts: 191 Joined: Fri Mar 28, 2003 12:30 pm
Location: CA, USA
Post
by nincha » Wed Feb 15, 2006 11:00 pm
any ways to check if user allows cookie?
josh
DevNet Master
Posts: 4872 Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida
Post
by josh » Wed Feb 15, 2006 11:04 pm
It requires two pages, set the cookie on page A, redirect to page B, page B will check if the cookie is there
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Wed Feb 15, 2006 11:33 pm
avoid header() redirection for that to work.
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098 Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia
Post
by Chris Corbyn » Thu Feb 16, 2006 2:22 am
You can do it client side with JavaScript too... though that's not as useful.
I'd guess it would simply be: