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
How can we define a variable accessible in functions of a php script?
Do while loops php?
What is form action php?
Explain the difference between static and dynamic websites?
What is an abstract class in php?
What is the maximum size of a database in mysql?
What is isset in php form?
How to create an array from php string?
What are the advantages of indexes?
What is cURL in PHP?
What is Apache's configuration file typically called?
Is facebook still in php?
What is difference between compile time and run time polymorphism?
What is xss and csrf?
What is the difference between md5(), crc32() and sha1() crypto on php?