Quote from: sjscosta at Sep 15, 2009, 08:48 AM
Please can you assist me to configure my server for to use $_SESSION
We will need a bit more info. Are you running MODx locally or are you on a shared/dedicated hosting box?
If MODx is working, then your sessions are working!
To store a value in your session (from inside a snippet call in MODx):
$_SESSION[’mysessionvar’] = 10;
The value 10 is now in the session variable "mysessionvar"
To access this value from another page:
$myvalue = $_SESSION[’mysessionvar’];
echo $myvalue;
Prints out the value of session variable "mysessionvar"
Does this help?