当前位置 : 主页 > 网络编程 > PHP >

配置codeigniter Session存储路径

来源:互联网 收集:自由互联 发布时间:2021-06-30
$config['sess_driver'] = 'files';//以文件存储session$config['sess_cookie_name'] = 'ci_session';$config['sess_expiration'] = 7200;$config['sess_save_path'] = APPPATH.'data\\session'; //配置session绝对路径$config['sess_match_ip'] =
 
$config['sess_driver'] = 'files';//以文件存储session
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = APPPATH.'data\\session'; //配置session绝对路径
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = true;

网友评论