Answer the question
In order to leave comments, you need to log in
How to work with modx revo session?
Good day, the task is the following, there is a button, when clicked, a request is sent to the snippet, where the data is entered into the session using the $_SESSION['test'] = $_REQUEST['test'] method. If I am authorized in the admin panel, everything works, but nothing works for an unauthorized user.
Answer the question
In order to leave comments, you need to log in
It is possible that the resource where the snippet is located has not been published, which means that it is available only to those logged in to the admin panel. It turns out that when you click on the button, the data is sent by ajax to an inaccessible page, and no script from the snippet works because of this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question