Setting cookie in WordPress:
<?php setcookie('cookie_name', $cookie_value, time()+3600*24*100, COOKIEPATH, COOKIE_DOMAIN, false); // set cookie for 100 days ?>
Setting cookie in WordPress:
<?php setcookie('cookie_name', $cookie_value, time()+3600*24*100, COOKIEPATH, COOKIE_DOMAIN, false); // set cookie for 100 days ?>