How can we destroy the session, how can we unset the
variable of a session?
Answer Posted / sreenia
the better way of destroying a session is to first unset all
the values of $_SESSION variables individually, and then use
the session_destroy() function
| Is This Answer Correct ? | 17 Yes | 6 No |
Post New Answer View All Answers
What are Routines?
How to protect special characters in query string?
What is php in simple words?
How can you upload a file using php?
What is the role of the .htaccess file in php?
What are helpers in php?
Tell me how to get the value of current session id?
How long does a session last in php?
What is file upload?
How to return ascii value of character in php?
How can we get the error when there is a problem to upload a file?
What is mvc? Why its been used?
Explain what are the two main string operators?
How to make a class in php?
Tell me what is the difference between get and post?