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

What is strcmp?

743


What is php full form?

765


What is echo in html?

704


Why do we use in php?

754


What is the difference between associative array and indexed array?

761


What does type casting mean in php? Explain with an example?

761


How to download and install php on windows?

811


How to create a session? How to remove data from a session?

770


Define about declare construct?

838


What is strlen php?

742


What are the differences between session and cookie?

790


Steps for the payment gateway processing?

770


Which method removes the last element from the end of an array?

737


discuss the issue of software theft in ghana and how it has affected the economy

1912


What is the difference between the include() and require() functions?

1158