CodeIgniter Session Class handling session through database errors CI 2.0.2
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.
精彩评论