在CI应用程序中,要使用会话,必须像使用$config‘’encryption_key‘= "something“一样使用,而无需在双引号之间设置任何内容。
发布于 2011-11-02 18:28:39
答案是否定的。如果您打开会话核心库,它具有以下内容:
if ($this->encryption_key == '')
{
show_error('In order to use the Session class you are required to set an encryption key in your config file.');
}没有真正的理由不拥有它,所以我就把它留在那里。如果你愿意,只需要一个字母,但即使是这样也不被建议。
https://stackoverflow.com/questions/7976614
复制相似问题