$domain = parse_url($site_url, PHP_URL_HOST);
if($get_cookie_check =='true'){
//set the cookie
setcookie("mobileesp_wp_full_site", 1, time()+86400, "/", $domain);
$_COOKIE['mobileesp_wp_full_site'] = 1;
}
if($get_cookie_check =='false'){
//set the cookie
setcookie("mobileesp_wp_full_site", 0, time()-3600, "/", $domain);
$_COOKIE['mobileesp_wp_full_site'] = 0;
Comments