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 does the identity operator === compare two values?
What is an array in php?
What is explode() in php?
How to enable parsing?
Which software is used to run php programs?
What is the use of trim in php?
What is difference between static and final in php?
For image work which library is used in php?
Explain me what are the 3 scope levels available in php and how would you define them?
How can you send email in php?
How can we submit from without a submit button?
Php error constants and their descriptions
What is the use of Php variables?
What is the difference between exception::getmessage and exception::getline?
Tell me can you extend a final defined class?