Im using a series of forms which allows the user to edit entered information (stored in sessions) at the end of the series.
To allow the edits, I need to first unset/unregister the session, then assign them the new values. I am using;
unset ($SESSION['name']);
$value = $GET['value'];
$_SESSION['name'] = $value;
I have also tried;
session_unregister('name');
$value = $_GET['value'];
session_register('name');
I have also tried;
$SESSION['name'] = '';
$SESSION['name'] = $_GET['value'];
The weird thing is that sometimes this doesn't work and the sessions keep their old values, and sometimes it does!!!! It usually fails the first time, works the second, and fails again the third or fourth attempt.
I have recently moved the site to a new server and this didn't happen on the old server - could this be a configuration thing.
Any ideas?
Many Thanks