Flo*_*ler 6 cookies session codeigniter codeigniter-2
PHP框架"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.
Run Code Online (Sandbox Code Playgroud)
如下所述,最多只能保存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.
Run Code Online (Sandbox Code Playgroud)
那么,这如何为程序员提供更多的灵活性呢?开发人员不使用本机PHP会话的实际原因是什么?
感谢您的信息!