Sessions variables do not always keep their values

63 Views Asked by At

I set a few session variables in a prehook of Quip Extra in MODX2.8.

$_SESSION["name"] = value

After Quip redirects to the next page, I read those variables in another snippet. Sometimes the variables have values, sometimes not. I have not found any logic.

I also added session_start() but the same behaviour. I have done debugging and the missing values of the session variables are the problem and the other code should be fine.

What is the right way to use session variables in MODX?

0

There are 0 best solutions below