I set following cookie when user open the site
add_action('init', 'is_it_mobile_or_desktop', 1);
function is_it_mobile_or_desktop(){
if (isset($_GET['site']) && in_array($_GET['site'], array('mobile', 'desktop'))){
setcookie( 'site', $_GET['site'], time() + 3600, COOKIEPATH, COOKIE_DOMAIN);
}
}
add_action('init', 'who_am_i', 2);
Now I want to unset/delete this cookie when the user closes the browser (Not the tab)
How can I do that?