Session save-handlers ===================== **This functionality is only in SVN at the moment.** Solar supports different session save-handlers with the `Solar_Session_Handler` class. There are two session save-handler adapters built-in to Solar: * `Solar_Session_Handler_Adapter_Native`: Uses whatever save-handler you've told PHP to use. If you haven't set `session.save_handler` in your ini settings, `files` save-handler will be used. * `Solar_Session_Handler_Adapter_Sql`: Stores session data in a database table. ## Native save-handler This is the default adapter. It doesn't add any save-handler logic and depends fully on PHP's ini-settings for sessions. ## SQL save-handler Stores session data in a database table. Below is an example configuration which stores sessions in a table called `sessions` and the actual serialized session data in a column `data`. {{code:php $config['Solar_Session_Handler_Adapter_Sql']['table'] = 'sessions'; $config['Solar_Session_Handler_Adapter_Sql']['data_col'] = 'data'; }} ## Implementing your own save-handler You can write your own session save-handler by just implementing the methods in `Solar_Session_Handler_Adapter`. You can look at the SQL save-handler adapter for an example.