P
P
Petr Ponomarev2017-03-13 09:22:36
MODX
Petr Ponomarev, 2017-03-13 09:22:36

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

1 answer(s)
D
display: block, 2017-03-13
@Petrdis

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 question

Ask a Question

731 491 924 answers to any question