5 // Reading the Cooikes using PHP
6 var cookie
= "<?php if (isset($_COOKIE['setArraycookie'])) {
7 foreach ($_COOKIE['setArraycookie'] as $name => $value) {
8 $name = htmlspecialchars($name);
9 $value = htmlspecialchars($value);
10 echo "$name : $value";
16 if (cookie
== "three : cookiethreetwo : cookietwoone : cookieone") {
17 document
.getElementById("test").innerHTML
= "<b>Passed</b>";
20 document
.getElementById("test").innerHTML
= "<b>Failed</b>";
22 if (window
.testRunner
)
23 testRunner
.dumpAsText();
28 <p
>This test
case to set a
Array of Cookie size of
3 and check
if it
's been correctly set and in order.<br />If the Test case was successful, Then it should print Passed below!! </p><br/>