How do you destroy a session?



How do you destroy a session?..

Answer / Nitin Paliwal

You can destroy a PHP session using session_destroy() function. This function unsets the session and destroys all of its data.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What’s the difference between sort(), assort() and ksort? Under what circumstances would you use each of these?

2 Answers  


Who is the father of php?

1 Answers  


What does session start do in php?

1 Answers  


how to install openssl, ISAPI, pdf modules in php 5.2.5 with apache on windows xp.

2 Answers  


Php says that an array is an ordered map. But how the values are ordered in an array?

1 Answers  


What can php do?

1 Answers  


Give any ten basic functions in PHP?

4 Answers   T3 Softwares,


How can we encrypt the username and password using PHP?

13 Answers   Avaria, HCL, TCS, Xpert,


How to open a file for reading?

1 Answers  


What is $_session in php?

1 Answers  


What is filter_var?

1 Answers  


Is empty check in php?

1 Answers  


Categories