CookieHandler::ReadJsonContent()


Definition

Returns the JSON-String in the cookie's content as associative array.

Array ReadJsonContent ()

Returns

Exception

Example

$Cookie = new CookieHandler ("Testcookie");
 
$UserArray = array (
   "name" => "Mr. Smith",
   "age"  => 20
   );
 
$UserArray2 = null;
 
try 
{
   $UserArray2 = $Cookie->ReadJsonContent ();
}
catch (CookieHandlerException $e)
{
   // [...]
}