|
问题是这样的:我打开网站的登录页,如果马上做登录操作,可以成功;如果你之后过个2,3分钟再去登录,就会出现session不能存储的情况,导致不能登录
config.php配置:
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300; |
|