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
What are the advantages of indexes in php?
Explain the difference between require() and require_once()?
Which php framework is fastest?
What does mvc stand for and what does each component do?
How can I increase my website session?
What is difference between required and require_once in php?
How do you identify independent and dependent variables in research?
What is $_ get and $_ post in php?
What is difference between php and html?
Why php is used in html?
What is meant by MIME?
Explain how we can get the number of elements in an array?
How to Retrieve a Cookie Value?
How many types of arrays are there in php?
What is the current php version?