Which function effectively deletes all sessions that have expired?
A
session_delete()
B
session_destroy()
C
session_garbage_collect()
D
SessionHandler::gc
Correct Answer: SessionHandler::gc
SessionHandler::gc is used to clean up expired sessions. It is called randomly by PHP internally when a session_start() is invoked.