Cookie Enabled Browser ?

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
Omani4Ever
Forum Newbie
Posts: 2
Joined: Wed Apr 23, 2003 10:19 am

Cookie Enabled Browser ?

Post by Omani4Ever »

Hello,

I wanted to know to check if a browser is cookie ebabled using PHP ?
and using Perl if possible as well ? :roll:

Thanks :!:
User avatar
oQEDo
Forum Commoner
Posts: 43
Joined: Thu Feb 20, 2003 11:08 am
Location: UK

Post by oQEDo »

In PHP just create a cookie and then check for its existence.
If its there then cookies are enabled if its not then cookies are disabled :)
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

oQEDo wrote:In PHP just create a cookie and then check for its existence.
You do have to refresh the page to check though.

Mac
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

I would make a mini iframe within your page to do so. Then refresh the iframe, it won't refresh the other content of the page. It works well in most senerios. :)
Omani4Ever
Forum Newbie
Posts: 2
Joined: Wed Apr 23, 2003 10:19 am

Post by Omani4Ever »

Oromian wrote:I would make a mini iframe within your page to do so. Then refresh the iframe, it won't refresh the other content of the page. It works well in most senerios. :)
How would you refresh the page in the mini frame though :?:
Post Reply