Advanced PHP
Q92 / 100

How does PHP's session save handler work and how can it be customized?

Correct! Well done.

Incorrect.

The correct answer is B) Implementing SessionHandlerInterface and passing it to session_set_save_handler() allows storing sessions in Redis, databases, or custom backends

B

Correct Answer

Implementing SessionHandlerInterface and passing it to session_set_save_handler() allows storing sessions in Redis, databases, or custom backends

Explanation

Custom session handlers implement open, close, read, write, destroy, gc methods. Used for distributed session storage in horizontally-scaled PHP applications.

Progress
92/100