PHP Framework“CodeIgniter”提供了一个Session类,它不使用本机PHP-Sessions。相反,他们使用Cookies开发了一个自己的Session系统。
在他们的网站CodeIgniter.com上,他们写下以下内容:
Note: The Session class does not utilize native PHP sessions. It generates its own session data, offering more flexibility for developers.
如下所述,只能保存最多4KB。
Note: Cookies can only hold 4KB of data, so be careful not to exceed the capacity. The encryption process in particular produces a longer data string than the original so keep careful track of how much data you are storing.
那么,这如何为程序员提供更多的灵活性呢?开发人员不使用本机PHP会话的实际原因是什么?
感谢您提供的信息!