I think it works for posted variables (post, get, cookies) but partially for session variables.
at the bottem of you're script you will have to put them back into the global array to change them for the next script.
so, at the start you did (in the loop):
- Code: Select all
$local = $_SESSION['local'];
at the end you will have to do:
- Code: Select all
$_SESSION['local'] = $local;
to save you're variables.
perhaps registering those variables again will also work.
one final note again: afcourse it is MUCH better to adjust the code itself so the code acceses the global array's.
Greetz Daan