会话中的某些值后,codeigniter未在会话中保存给定值。 例如,在第一页中,我有2个会话变量:
Array
(
[session_id] => 655dasdasfdce7cfe9dd6asd9faead406
[ip_address] => ip_address
[user_agent] => Mozilla/5.0 (Windows NT 6.3; WOW64; rv:44.0) Gecko/2010301 Firefox/44.0
[last_activity] => 14696222
[user_data] =>
[csrf] => Array
(
[token] => xyz
)
[logged_in] => Array
(
[id] => 1
[cus_email] => email@email.com
[company_id] => 1
)
[third_value] => Array
(
[example] => 1
)
)
当我添加第三个会话变量时。它在第一页上显示了我。但是,不是第二次。
是内存问题还是time_out?
memory_limit在php.ini
的config.php
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close'] = TRUE;
$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;