You want to save a client's session values in a database. Which of the following actions will you take to accomplish this task?
Use the session_set_save_handler() function.
Correct:
Use the session_set_save_handler() function.
Explanation: Answer option D is correct.
The session_set_save_handler() function is used to set the user-level session storage functions to store and retrieve data associated with a session. This is most useful when the Web developer wants to store the session data in a local database.
Answer option B is incorrect. The session_save_path() function returns the path of the current directory that is being used for saving session data.
Answer options C and A are incorrect. These are not valid options to accomplish the desired task.