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()
Correct Answer: session_unset()
The function session_unset() frees all session variables that is currently registered. 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().