PHP Code:
session_start();
if (!isset($_SESSION['pears'])) {
echo "pears were not set";
session_register ("pears");
$pears = dmondindex("pear");
}
if (!isset($_SESSION['pears'])) {
echo "rounds were not set";
session_register ("rounds");
$rounds = dmondindex("round");
}
dmondindex is a fairly lengthy parsing function that only needs to be done once per session. the above code doesn't seem to set the session variables properly because every time i refresh my browser i get the echo messages, instead of just the first time around
thanks,
Leon