F
F
fredkey2018-11-26 15:21:07
JavaScript
fredkey, 2018-11-26 15:21:07

How to limit the number of comments per user?

There is a post with its own id, there is a comment from an unauthorized user also with its own id. An id is assigned to the comment so that it can be edited/deleted by the user.
The task is this: a user can leave one comment in one post. But since we do not have authorization in the service, it becomes difficult to track the user. How to implement this feature? Cookies immediately come to mind, but I deeply doubt about them.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question