Which of the following functions allows you to store session data in a database?
session_set_save_handler();
Correct:
session_set_save_handler();
Answer B is correct.You can use session_set_save_handler() to override PHP’s default session-handling functions and store session data any way you want. Answer A is incorrect because session_start() only activates PHP sessions for the current script.Answer C is incorrect because mysql_query() only executes a query with MySQL and does not affect the behavior of PHP’s session mechanism. Answer D is incorrect because this statement is false.