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 php a cms?
What is the use of inner join in mysql?
How do you pass a variable by value?
What is the different between count() and sizeof() in php?
What is the difference between characters 23 and x23?
What's the difference between __sleep and __wakeup?
What is csrf token and why it is required?
Is php used in 2019?
iam mca post graduate in 2010 not getting job in JAVA so iam looking for carear in php as market demand is high so it is best option to try for php or not
What is properties of class?
How to convert a json string to an array in php?
what is the use of include_once in php?
What websites use php?
How to create a directory?
what are interfaces and Abstart classes