Hi,
I am having problems with session variables. Initially I set the variables using:
session_register('unittitle','unitcode','unitcodepk');
These variables can then be used in different pages by refering to them as $unittitle etc...
Once the user has entered all info, I save the values of these variables to a database. However, when I come to unset these variables, and then move to another page, the variables still hold a value.
I unset the variables using:
unset($unittitle,$unitcode,$unitcodepk);
to move between pages, I use the code:
header("Location: lecturer_page.php");
exit();
Can anyone tell me how I can unset the values completely please?
I am having problems with session variables. Initially I set the variables using:
session_register('unittitle','unitcode','unitcodepk');
These variables can then be used in different pages by refering to them as $unittitle etc...
Once the user has entered all info, I save the values of these variables to a database. However, when I come to unset these variables, and then move to another page, the variables still hold a value.
I unset the variables using:
unset($unittitle,$unitcode,$unitcodepk);
to move between pages, I use the code:
header("Location: lecturer_page.php");
exit();
Can anyone tell me how I can unset the values completely please?