V
V
volnov2011-11-26 13:57:54
HTTP Cookies
volnov, 2011-11-26 13:57:54

Wordpress distributes the same cookies

Given:
Wordpress without mandatory registration with pre-moderation of comments.
Problem:
Since yesterday, wp began to issue the same kind of cookie to everyone:

comment_author_f5598bcb30f4c521d381770272e952eb

and now any commentator sees other people's comments that have not yet passed moderation.

Help solve the problem

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Wott, 2011-11-26
@volnov

cookies must be the same. The contents of the cookies must be different.
what is shown there incorrectly - you need to look at the topic, but most likely a sudden change in behavior is the result of an incorrect filter or hook in some plugin thread.

G
getencapsulated, 2011-11-26
@getencapsulated

It seems that something with COOKIEHASH. You have to see why it's the same for everyone. Here is a piece of code from wp-comments-post.php:
setcookie('comment_author_' . COOKIEHASH, stripslashes($comment_author), time()+ 30000000, COOKIEPATH);
setcookie('comment_author_email_' . COOKIEHASH, stripslashes($comment_author_email), time() + 30000000, COOKIEPATH);
setcookie('comment_author_url_' . COOKIEHASH, stripslashes($comment_author_url), time() + 30000000, COOKIEPATH);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question