问题描述
此 __ ci_last_regenerate
使我的会议陷入困境。有没有一种方法可以从会话数组中删除该会话?
This __ci_last_regenerate
is screwing my session. Is there a way of removing this from session array ?
当我为用户设置会话并打印会话时,会话数组会正确创建,但它会以<$开头c $ c> __ ci_last_regenerate 。另外,当我销毁会话时,会话数组只有一个元素,该元素很血腥 __ ci_last_regenerate
。
When i set session for user and i print session, the session array is created correctly but its is proceeded by __ci_last_regenerate
. Also when i destroy session the session array has only one element and its that bloody __ci_last_regenerate
.
登录后的会话:
array(2) {
["__ci_last_regenerate"]=> int(1475532963)
["cb7a1d775e800fd1ee4049f7dca9e041eb9ba083"]=> array(2) {
["id"]=> string(2) "37"
["email"]=> string(19) "admin@admin.com"
}
}
注销后的会话(调用会话销毁时)
Session after logout (when calling session destroy)
array(1) {
["__ci_last_regenerate"]=> int(1475533350)
}
推荐答案
您不应该删除它。该库在内部使用它-这就是每次都重新创建它的原因。
You're not supposed to delete that. The library uses it internally - that's why it is re-created every time.
这篇关于无法从会话中删除__ci_last_regenerate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!