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


Please Help Members By Posting Answers For Below Questions

Tell me is it possible to protect special characters in a query string?

685


How to support multiple-page forms?

755


In php how can you jump in to and out of "php mode"?

757


What is string and its function?

740


What is php and its advantages?

693


What is the output of the following php code?

660


What is global array in php?

762


Tell us how to set cookies in php?

701


What is csrf token and why it is required?

731


Is python easier than php?

729


What is php and how do you use it?

733


How to remove an empty directory?

796


What is the use of "ksort" in php?

710


A process can run only in the background. State Whether True or False?

830


how retrive the video file in php using video tag

1544