$size = [ 'height' => 100, 'width' => 200];setcookie('myCookie', json_encode($size));
$size = json_decode($_COOKIE['myCookie'], true);
Kommentar