Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/236.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 我想将codeigniter中的会话设置为永不过期_Php_Codeigniter_Session - Fatal编程技术网

Php 我想将codeigniter中的会话设置为永不过期

Php 我想将codeigniter中的会话设置为永不过期,php,codeigniter,session,Php,Codeigniter,Session,我在配置文件中设置了$config['sess\u expirement']=2592000和$config['sess\u expire\u on\u close']=FALSE,但它仍然会在浏览器关闭时使会话过期。我希望会话至少存储30天,甚至不会在浏览器关闭时过期。请告诉我怎么做 我还尝试将$config['sess_expiration']=0设置为永不使会话过期,但它不起作用。请确保您没有:1。使用隐姓埋名模式;2.将sess\u match\u ip设置为true并更改ip;3.清理

我在配置文件中设置了
$config['sess\u expirement']=2592000
$config['sess\u expire\u on\u close']=FALSE
,但它仍然会在浏览器关闭时使会话过期。我希望会话至少存储30天,甚至不会在浏览器关闭时过期。请告诉我怎么做


我还尝试将
$config['sess_expiration']=0
设置为永不使会话过期,但它不起作用。

请确保您没有:1。使用隐姓埋名模式;2.将
sess\u match\u ip
设置为
true
并更改ip;3.清理饼干;4.拥有处理cookie的软件,如internet安全套件