Can anyone advise me with regards to this question from a mock zend exam. The PHP docs make it clear what session_set_save_handler does, but the question is awkwardly worded.
If you would like to store your session in the database, you would do which of the following?
- It requires a custom PHP extension to change the session handler
- Implement the session_set_save_handler() function
- Create functions for each session handling step and use session_set_save_handler() to override PHP's internal settings
- Configure the session.save_handler INI directive to your session class
I can't see the distinction between options 2 and 3 here, so maybe someone can advise me if they have been in this position before?