Basic PHP Programming Question:

Download Job Interview Questions and Answers PDF

How can we destroy the session, how can we unset the variable of a session?

PHP Interview Question
PHP Interview Question

Answer:

session_unregister() - Unregister a global variable from the current session
session_unset() - Free all session variables

Download PHP Interview Questions And Answers PDF

Previous QuestionNext Question
What Is the difference between htmlentities() and htmlspecialchars()?What are the different functions in sorting an array?