The session_set_save_handler sets the user level storage session functions which are used for storing and retrieving data associated with session. This is the most useful when a storage method other than those supplied by PHP sessions is preffered i.e. Storing the session data in a local database.