How to empty $_SESSION?
Posted: Wed Aug 14, 2013 2:14 pm
I have a script that accepts input and then outputs a report based on that. Everything is stored in $_SESSION, but I can't seem to unset or empty the variable at the end of the script, which is preventing people from re-running the script.
I've tried
unset ( $_SESSION );
as well as
$_SESSION = NULL;
But neither accomplish my goal. Is there another way? Or do I have to manually delete every single element of the array?
(If it makes a difference, this is running inside Wordpress)
I've tried
unset ( $_SESSION );
as well as
$_SESSION = NULL;
But neither accomplish my goal. Is there another way? Or do I have to manually delete every single element of the array?
(If it makes a difference, this is running inside Wordpress)