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


Please Help Members By Posting Answers For Below Questions

Why do we use session?

733


How to download and install php on windows?

795


What does $globals mean?

726


Why post method is used in php?

848


Explain the types of functions for Splitting String?

781


Why sessions are used in php?

698


What is the difference between characters 23 and x23?

804


What is the difference between single quoted string and double quoted string?

733


Why use static methods php?

743


What PHP stands for?

767


Tell me how can I display text with a php script?

738


What is php session_start() and session_destroy() function?

801


How do you use end in python?

683


What is the meaning of php?

714


Tell me what is the difference between exception::getmessage and exception::getline?

694