This function allows an options array which will be used for configuring the session
and the handler to be used. The most important key in the configuration array is
defaults, which indicates the set of configurations to inherit from, the possible
defaults are:
- php: just use session as configured in php.ini
- cache: Use the CakePHP caching system as an storage for the session, you will need
to pass the config key with the name of an already configured Cache engine.
- database: Use the CakePHP ORM to persist and manage sessions. By default this requires
a table in your database named sessions or a model key in the configuration
to indicate which Table object to use.
- cake: Use files for storing the sessions, but let CakePHP manage them and decide
where to store them.
The full list of options follows:
- defaults: either 'php', 'database', 'cache' or 'cake' as explained above.
- handler: An array containing the handler configuration
- ini: A list of php.ini directives to set before the session starts.
- timeout: The time in minutes the session should stay active