Vidyalelo
PHP · Q41

HTML Forms Handling

Programming · PHP · question 41

Q41

Which function is used to erase all session variables stored in the current session?

A.
session_destroy()
B.
session_change()
C.
session_remove()
D.
session_unset()
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
This will not completely remove the session from the storage mechanism. If you want to completely destroy the session, you need to use the function session_destroy().