Comment cookies not recording (3 posts)

  1. reid315
    Posted 10 years ago #

    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

  2. reid315
    Posted 10 years ago #

  3. reid315
    Posted 10 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.