|
本帖最后由 air_wang 于 2009-3-25 23:18 编辑
《Professional Codeigniter》的第82页有以下这段话:
Here ’ s a very important note if you are security conscious. Even if you choose to save CodeIgniter
sessions in a database table, the same data are stored in a client - side cookie. That means that it is
available to the end - user. Even if you use encryption, it is possible to tamper with the cookie and thereby
cause problems. Therefore, in this book (and in your foreseeable CodeIgniter career), only use
CodeIgniter sessions (and flashdata) to store data that are unimportant. If you need to have secure
logins and authentication, use PHP sessions instead.
大致意思就是CI的session不够安全,如果有重要的数据,比如认证登录之类的数据还是需要用PHP sessions,请教各位高手,你们在做实际项目当中是使用CI的session还是PHP session,谢谢!
ps:我是指最新的1.7.1版本的session有没有改观,看到HEX老大之前的回复了。 |
|