[solved]Cookie problem...

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
dreamline
Forum Contributor
Posts: 158
Joined: Fri May 28, 2004 2:37 am

[solved]Cookie problem...

Post 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... :)
Last edited by dreamline on Sun Aug 07, 2005 5:18 am, edited 1 time in total.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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.
dreamline
Forum Contributor
Posts: 158
Joined: Fri May 28, 2004 2:37 am

Post by dreamline »

Good thinking.. :) I'll have a go with that idea.. :D
Post Reply