Method:
writeArray()
Class:
SESSION
Method Call:
include_once("core/session/SESSION.php");
$session = new SESSION();
BOOLEAN $session->writeArray(ASSOC_ARRAY: $array, [STRING: $prefix]);
Description:
Writes (create or update) all the members of $array to session variables
with $prefix prefix. If $prefix is not set, the array will be written without a prefix.
Usage:
$session = new SESSION(); $array = array( "authWrite" => FALSE, "title" => "My WIKINDX!", ); if(!$session->writeArray($array, "setup")) print "Unable to write session array!";will update or create session variables:
setup_authWrite setup_titlewith the appropriate values.
writeArray() returns TRUE or FALSE upon success or failure.