How can we destroy the session, how can we unset the
variable of a session?
Answer Posted / devendrarjadav
session_destroy() function destroys all data registered to
current session. use unset function to destroy varible
specified with session. So to destroy $name registered with
session use unset($name) in your php script.
| Is This Answer Correct ? | 16 Yes | 6 No |
Post New Answer View All Answers
Is empty function c++?
What are the four scalar types of php?
Why post method is used in php?
Explain converting an object?
What is the importance of php?
What does $_server means?
What language is php written in?
Why php was called as personal home page?
Why is used in php?
How to set a value in session? How to remove data from a session?
How can we submit from without a submit button?
What is the method to register a variable into a session?
What is difference between strstr() and stristr() in PHP?
what is benefit of magento?
When are you supposed to use endif to end the conditional statement?