What is difference between session_unset and session_destroy?



What is difference between session_unset and session_destroy?..

Answer / Priyanka Yadav

session_unset() unsets (removes) all session variables in the current session. It does not destroy the session itself. session_destroy() destroys the entire session, including any session data and the session cookie.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Which function can be used to delete a file?

1 Answers  


How to print \ in php. Only \ with out using . or *.

7 Answers   American Solutions,


What is c++ polymorphism?

1 Answers  


I am a 2007 Passed out, Jobless for almost 2.6 years. I am preparing myself as a Php programmer. Will i get a job in Php and can any one guide me please.

5 Answers   HCL,


Is php is dying?

1 Answers  


Is it possible to get the screen resolution and like with php?

1 Answers  


What are form input html tags?

1 Answers  


What is a class in php programing?

1 Answers  


What is the difference between for and foreach?

1 Answers  


How cookies are trported from browsers to servers?

1 Answers  


can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com

0 Answers  


How to calculate the length of a string?

1 Answers  


Categories