更新时间:2023-08-31 22:59:28
您是在测试Safari的浏览器吗?我发现很多报告,这是在iPad或iPhone上的Safari的常见问题,但也与Internet Explorer,我已经解决了过去。
Is the browser you're testing for Safari? I found a lot of reports that this is a common problem with Safari on iPad or iPhone, but also with Internet Explorer, which I've solved in the past.
当我在过去在Internet Explorer中遇到过这个问题,我通过在config.php中设置以下选项来修复它:
When I encountered this in the past on Internet Explorer, I fixed it by setting the following option in config.php:
$config['sess_match_useragent'] = FALSE;
显然,问题是由于每次用户加载时重新生成session_id任何页面。显然,CodeIgniter的本地会话类不再执行特定的检查。
Apparently, the problem is caused by the fact that the session_id() is regenerated every time a user loads any page. By not checking for the useragent any more, apparently, CodeIgniter's native session class no longer performs that particular check-up.
让我知道如果它工作!