Categories
How to write to a modx session?
Good day! Please briefly explain how to create a session entry in the modx snippet and how to read this entry later. Thanks in advance
Answer the question
In order to leave comments, you need to log in
MODx itself starts and closes the session. It suffices to refer directly to the superglobal array. $_SESSION['bar'] = 'foo'; $foo = $_SESSION['bar'];
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question