This is most likely a PHP noobie question.
To test some server caching configuration, I added the following code to my test suite:
<?php
if (array_key_exists('visited', $GLOBALS))
{
print_r("We have already met");
} else {
print_r("Hello ShimmerCat");
}
$GLOBALS['visited']=1;
?>
I'm expecting this code to take differents path of the branch during a first and second request, but it is returning the second message always. How can I achieve what I want?