Cookies are just one of the possible ways to identify a user for a session or between visits without authentication. Although this is a very common and useful way. (PHP may also use sid or another parameter, although it is no longer common.)
You need to save those threads / messages that the user has read, or which he / she does not have. You can summarize everything by reading everything up to the "date" or postId for specific subforums.
, , . , , , , (x )/ ( y , -, z , admin) .
: CSS , , / .