session_destroy function can destroy all data registered to a session.
which function can destroy special session variables and leave others exist.
I only want to delete some session variables and not all of them.
Thanks a lot.
Try this: unset($_SESSION['whatever']);
That will destroy the particular variable.
Ash
or try this
session_unregister("variable_name");
this will destroy a particular session variable... hopefully it help 🙂