M
M
mylpavel2015-07-24 12:09:21
MODX
mylpavel, 2015-07-24 12:09:21

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

1 answer(s)
A
AJ, 2015-08-04
@2ball

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 your question

Ask a Question

731 491 924 answers to any question