b1011 Posted May 6, 2007 Share Posted May 6, 2007 How can i check if a cookie DOES NOT exist? if cookie doesn't exist i need it to execute code. any ideas? Link to comment https://forums.phpfreaks.com/topic/50298-solved-cookie-checking/ Share on other sites More sharing options...
clown[NOR] Posted May 6, 2007 Share Posted May 6, 2007 <?php if (!isset($_COOKIE['cookiename'])) { // Execute code here } ?> Link to comment https://forums.phpfreaks.com/topic/50298-solved-cookie-checking/#findComment-246887 Share on other sites More sharing options...
b1011 Posted May 6, 2007 Author Share Posted May 6, 2007 thanks! Link to comment https://forums.phpfreaks.com/topic/50298-solved-cookie-checking/#findComment-246891 Share on other sites More sharing options...
clown[NOR] Posted May 6, 2007 Share Posted May 6, 2007 no problem Link to comment https://forums.phpfreaks.com/topic/50298-solved-cookie-checking/#findComment-246894 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.