Custom Session Handlers
To implement database storage, or any other storage method, you will need to use session_set_save_handler() to create a set of user-level storage functions.
To implement database storage, or any other storage method, you will need to use session_set_save_handler() to create a set of user-level storage functions.
Коментарии
Your custom session handler should not contain calls to any of the session functions, such as session_name() or session_id(), as the relevant values are passed as arguments on various handler methods. Attempting to obtain values from alternative sources may not work as expected.