Support » Fixing WordPress » Comment cookies not recording

  • I don’t know what the problem is, but I’ve tested my comments for a while.

    Go test a post for yourself.

    The cookies aren’t storing the comment information. All i did was try in implement scriptygoddess’s “forget my info” script, and surely enough, the cookies forgot me. I became dissatisfied, and i removed all the code. now i can’t be remembered! please help

Viewing 2 replies - 1 through 2 (of 2 total)
  • ah, silly me;

    just in case anyone runs across this problem, insert this code somewhere above your comment form:

    $comment_author = (isset($_COOKIE['comment_author_' . COOKIEHASH])) ? trim($_COOKIE['comment_author_'. COOKIEHASH]) : '';
    $comment_author_email = (isset($_COOKIE['comment_author_email_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_email_'. COOKIEHASH]) : '';
    $comment_author_url = (isset($_COOKIE['comment_author_url_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_url_'. COOKIEHASH]) : '';

    That will retrieve the cookie stored in the computer and extract the info

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Comment cookies not recording’ is closed to new replies.