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()
AnswerAnswer: 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().