Page 1 of 1

[solved]Cookie problem...

Posted: Sun Jun 12, 2005 11:01 am
by dreamline
Hi guyz,
I did do a search on the forums here but haven't come up with what i need.. I was wondering if there was a way to check through PHP if the client side has enabled or disabled cookies. My site works with cookies so if the client side doesn't accept cookies i want to redirect them to a page stating that they need to enable cookies in their browser.. :)

Thanks for any help... :)

Posted: Sun Jun 12, 2005 11:22 am
by John Cartwright
Best way I can think of through PHP is that attempt to create a cookie, reload the page to itself, and check if the cookie existed.

Posted: Sun Jun 12, 2005 11:28 am
by dreamline
Good thinking.. :) I'll have a go with that idea.. :D