Which function effectively deletes all sessions that have expired?
Which function effectively deletes all sessions that have expired? 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.