小凡 发表于 2011-10-27 21:16:12

CI中要使用加密类或是session类,不是必须要设置加密字串么

本帖最后由 小凡 于 2011-10-27 21:19 编辑

如题:但是 STblog 的配置文件中用了session类,并且也要求加密了 但是为什么没有设置 加密字串呢??而且也没有报错啊。

If you use the Encryption class or the Sessions class with encryption| enabled you MUST set an encryption key.See the user guide for info.
$config['encryption_key'] = "";

很是疑惑求解答?????



jeongee 发表于 2011-10-27 21:36:19

http://codeigniter.org.cn/user_guide/changelog.html
仔细看2.0.0的changelog,在类库里命名写着:
修改了Session类,如果没有在配置文件里设置“encryption key”的值,则不能使用Session。

STBLOG用的CI版本1.7.X,
你还疑惑吗?

小凡 发表于 2011-10-27 21:41:46

jeongee 发表于 2011-10-27 21:36 static/image/common/back.gif
http://codeigniter.org.cn/user_guide/changelog.html
仔细看2.0.0的changelog,在类库里命名写着:
修改 ...

但是 STblog 中 那个注释确实是那样写的啊

If you use the Encryption class or the Sessions class with encryption

enabled you MUST set an encryption key.See the user guide for info.

jeongee 发表于 2011-10-27 22:14:35

小凡 发表于 2011-10-27 21:41 static/image/common/back.gif
但是 STblog 中 那个注释确实是那样写的啊

If you use the Encryption class or the Sessions class w ...

这段注释冲突吗?
再仔细读读升级的内容和这句注释。

^淡如清风 发表于 2011-12-27 21:30:53

1.7版本中,意思是如果开启了加密才需要配置
页: [1]
查看完整版本: CI中要使用加密类或是session类,不是必须要设置加密字串么