6

PHP フレームワーク「CodeIgniter」は、ネイティブ PHP セッションを使用しないセッション クラスを提供します。代わりに、Cookie を使用して独自のセッション システムを開発しました。

彼らの Web サイト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 セッションを使用しない本当の理由は何ですか?

情報をくれてありがとう!

4

0 に答える 0