root/trunk/system/config/session.php

Revision 2742, 1.2 kB (checked in by Geert, 6 months ago)

Follow-up on #622. Cleaning up comments and i18n. Also dropping valid::id().

  • Property svn:eol-style set to LF
  • Property copyright set to Copyright (c) 2007 Kohana Team
  • Property svn:keywords set to Id
Line 
1<?php defined('SYSPATH') or die('No direct access allowed.');
2/**
3 * @package Session
4 *
5 * Session driver name.
6 */
7$config['driver'] = 'cookie';
8
9/**
10 * Session storage parameter, used by drivers.
11 */
12$config['storage'] = '';
13
14/**
15 * Session name.
16 * It must contain only alphanumeric characters and underscores. At least one letter must be present.
17 */
18$config['name'] = 'kohanasession';
19
20/**
21 * Session parameters to validate: user_agent, ip_address, expiration.
22 */
23$config['validate'] = array('user_agent');
24
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.
29 */
30$config['encryption'] = FALSE;
31
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).
35 */
36$config['expiration'] = 7200;
37
38/**
39 * Number of page loads before the session id is regenerated.
40 * A value of 0 will disable automatic session id regeneration.
41 */
42$config['regenerate'] = 3;
43
44/**
45 * Percentage probability that the gc (garbage collection) routine is started.
46 */
47$config['gc_probability'] = 2;
Note: See TracBrowser for help on using the browser.