Answer the question
In order to leave comments, you need to log in
How to write a cookie script that will determine if the user has visited the page?
There is a page that displays its children (other pages, site on modx Revo ).
You click in the output on any page and go to it. In the output of child pages, there is a gray
svg checkmark before each page .
It is necessary to track if the user has moved to such and such a page, then on the main page (where all the child pages are displayed) before the corresponding svg page, the checkmark has become green (a css class has been added, for example). And if this user logged out , and then logged in, then the checkmark remained green .
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question