Method:
getArray()
Class:
SESSION
Method Call:
include_once("core/session/SESSION.php");
$session = new SESSION();
ASSOC_ARRAY $session->getArray(STRING: $prefix);
Description:
Returns an associative array of all session variables having $prefix prefix.
The keys of the array are without the $prefix prefix.
Usage:
If the session has the following variables:
setup_authWrite = 1 setup_title = "My WIKINDX!"the code:
$session = new SESSION(); $setupArray = $session->getArray("setup");will return $setupArray as:
"authWrite" => 1; "title" => "My WIKINDX!";