Merge branch 'maint/7.0'
[ninja.git] / system / config / session.php
blobe287bae825d0cae24a6ebbc661ddb92fc2c8c3c2
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 /**
3 * @package Session
5 * Session driver name.
6 */
7 $config['driver'] = 'cookie';
9 /**
10 * Session storage parameter, used by drivers.
12 $config['storage'] = '';
14 /**
15 * Session name.
16 * It must contain only alphanumeric characters and underscores. At least one letter must be present.
18 $config['name'] = 'kohanasession';
20 /**
21 * Session parameters to validate: user_agent, ip_address, expiration.
23 $config['validate'] = array('user_agent');
25 /**
26 * Enable or disable session encryption.
27 * Note: this has no effect on the native session driver.
28 * Note: the cookie driver always encrypts session data. Set to TRUE for stronger encryption.
30 $config['encryption'] = FALSE;
32 /**
33 * Session lifetime. Number of seconds that each session will last.
34 * A value of 0 will keep the session active until the browser is closed (with a limit of 24h).
36 $config['expiration'] = 7200;
38 /**
39 * Number of page loads before the session id is regenerated.
40 * A value of 0 will disable automatic session id regeneration.
42 $config['regenerate'] = 3;
44 /**
45 * Percentage probability that the gc (garbage collection) routine is started.
47 $config['gc_probability'] = 2;