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:

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.

<?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.