开发者

CodeIgniter Session Class handling session through database errors CI 2.0.2

开发者 https://www.devze.com 2023-03-31 08:39 出处:网络
I am storing data through CodeIgniter sessions, but for some reason, when I store session with large amount of data, it logs me out of my application.

I am storing data through CodeIgniter sessions, but for some reason, when I store session with large amount of data, it logs me out of my application.

In the user guide: "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."

Does this mean, even if I have it store in database, I shouldn't store large data in my session?

N开发者_Go百科ot to mention, it keeps adding 0.0.0.0 as IP and 0 as user agent...

'f2361497fefcd079523534c3230c3ac3', '0.0.0.0', '0', 1314307801, ''


Correct. What you can do to get around this is create an additional table in your database which has an id equal to your session_id, then you can make a query based on that.

0

精彩评论

暂无评论...
验证码 换一张
取 消