When I use the following code, it doesn't print out "else if test" until after I refresh the page.
unset($_SESSION["product"]);
if ( !empty($_SESSION["product"]) && ($_SESSION["product"] != NULL)) {
echo "if test";
} else if {
echo "else if test";
}
When I use:
var_dump($_SESSION["product"]);
It shows:
array(0) { }
(Added some code markup ~ Mod)