Jump to content

Archived

This topic is now archived and is closed to further replies.

elg2001

Proper Way to Check If Cookies Exist?

Recommended Posts

Is isset($_COOKIE['cookie_name']) the best way to check if a certain cookie named [i]cookie_name[/i] exists?

Previously, I was using if(strlen($_COOKIE['cookie_name']) > 0) but that generates errors.

Basically, what is the best way to check for the existence of a cookie? isset() or otherwise?

Share this post


Link to post
Share on other sites
will do. thanks! [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.