|
楼主 |
发表于 2009-9-9 12:52:19
|
显示全部楼层
http://codeigniter.com/wiki/KNDB_Session/
你是说这个网址吧。。。。。我一直都在看这个的。。。
Required Database Structure
CREATE TABLE sessions (
session_id varchar(32) NOT NULL,
session_last_access int(10) unsigned,
session_data text,
PRIMARY KEY (session_id)
);
Example Configuration (/system/application/config/config.php)
$config['sess_cookie_name'] = 'CISESSION';
$config['sess_expiration'] = 7200;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_table_name'] = 'sessions';
$config['sess_match_ip'] = TRUE;
$config['sess_match_useragent'] = TRUE;
$config['sess_use_database'] = TRUE;
$config['sess_time_to_update'] = 300; |
|