How many ways you can delete a session variable?
Posted by Raj
How many ways you can delete a session variable?
In order to kill the session variable use:
- unset($_SESSION["test"]);
- session_destroy() — Destroys all data registered to a session
- session_unregister() — Unregister a global variable from the current session.
- session_unset() — Free all session variables.
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
delete session variables,
how to destroy session variable,
PHP,
PHP interview questions and answers
.You can leave a response, or trackback from your own site.