How can we destroy the session, how can we unset the
variable of a session?
Answer Posted / sri harsha
session can be destroyed by using session_destroy() function
and variable can be unset by unset($_session['name']).
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
What is the meaning of a persistent cookie?
How to remove an empty directory?
Why php is also called as scripting language?
What is uniqid php?
How to retrieve values out of an array?
Which array function checks if the particular key exists in the array?
Is jquery better than javascript?
Is facebook still written in php?
What are constructor and destructor in PHP?
How to connect to mysql from a php script?
What library is used for pdf in php?
How to calculate the difference between two dates using php?
Write a program using while loop in php?
How to pass variables by references?
Differentiate between require and include?