I've got a function, and one of its duties is to echo a variable, '$cost', which it performs wonderfully. However, this function skimps on its other duty which is to set that '$cost' variable into a $_SESSION['cost'] variable. The function works great, but on the following pages the session does not get set to the right value (or any value at all). Here is my code:
$_SESSION['totalCost'] = $totalCost;
session_start() is set on both pages and other $_SESSION array variables are being read just fine, but none of those is set inside a function.
Any thoughts? php.ini setting, perhaps?
-chris