elg2001 Posted May 18, 2006 Share Posted May 18, 2006 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? Link to comment https://forums.phpfreaks.com/topic/9960-proper-way-to-check-if-cookies-exist/ Share on other sites More sharing options...
toplay Posted May 19, 2006 Share Posted May 19, 2006 Use isSet() Link to comment https://forums.phpfreaks.com/topic/9960-proper-way-to-check-if-cookies-exist/#findComment-37035 Share on other sites More sharing options...
elg2001 Posted May 19, 2006 Author Share Posted May 19, 2006 will do. thanks! [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /] Link to comment https://forums.phpfreaks.com/topic/9960-proper-way-to-check-if-cookies-exist/#findComment-37080 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.