• hi:)
    i want to delete $_COOKIE in wordpress..
    because i don’t want to appear data at “wp_get_current_commenter()”.
    i made some source but it’s not work.

    foreach ($_COOKIE as $k=>$v)
    {
    	setcookie($k,"", time()-3600);
    }

    like this.
    but it’s not work.
    why???
    or i want to know some function in wordpress to remove this cookie.
    (not important browser, i want to resolve in wesite not browser)
    please help me:)

Viewing 1 replies (of 1 total)
  • Use this on the functions.php of the current template:

    add_filter('comment_cookie_lifetime', 'disable_comment_cookies');
    function disable_comment_cookies($lifetime) {
    	return -30000000;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘how to remove $_COOKIE???’ is closed to new replies.