the code below, simply doesn't work... and I don't know why.
the $script_total_time is working like a charm, but I can get $step_times to be stored... I serialize it before I register it, and the commented echo even shows the exact string for the serialized version... so why this isn't working? step_times is registerd all right, but empty.
<pre>
if(!isset($script_total_time))
{
$script_total_time=(float)$total_time;
session_register("script_total_time");
$step_times_array[$step]=$total_time;
$step_times=serialize($step_times_array);
//echo "step_times=\"$step_times\"";
//this when not commented, echoes perfectly the string with the serialized array...
session_register("step_times");
//so why doesn't it work if $step_times is in fact a string?
}
else
{
$script_total_time+=(float)$total_time;
$step_times_array=unserialize($step_times);
$step_times_array[$step]=$total_time;
$step_times=serialize($step_times_array);
}
</pre>