Hi-
I have what should be a simple question. I've searched through this forum and php.net and google and haven't found a satisfactory answer to it though.
What is the sure way to completely destroy (globaly) a session variable inside of a function.
as an example:
$_SESSION['blah'] = 'blah';
function blah()
{
// i need to delete $_SESSION['blah']
// what code should I use here???
}
// now any refference to $_SESSION['blah'] should return an error saying it doesn't exist.
Thanks!
Jonathan
I have what should be a simple question. I've searched through this forum and php.net and google and haven't found a satisfactory answer to it though.
What is the sure way to completely destroy (globaly) a session variable inside of a function.
as an example:
$_SESSION['blah'] = 'blah';
function blah()
{
// i need to delete $_SESSION['blah']
// what code should I use here???
}
// now any refference to $_SESSION['blah'] should return an error saying it doesn't exist.
Thanks!
Jonathan