Welcome Guest, Not a member yet? Register   Sign In
Database session table - IDs
#3

(03-21-2017, 03:09 PM)Narf Wrote: Also, 1MB of session data?!

Hi there, new day, fresh head... :-)

I was doing this:

Code:
$this->CI->session->set_userdata('paginacao', $this);

In a class constructor and having a property holding the Super Object CI... I'm afraid this was the cause for high data volume. I've just refactored to a local variable and things got OK again.

Just for curiosity: blob session field with super object CI: ~400 KB, then refactored without it: less then 1 KB :-D

Lesson: do not store the CI object at database session! I was doing this without notice.

Thank you!
Reply


Messages In This Thread
Database session table - IDs - by fmertins - 03-21-2017, 01:36 PM
RE: Database session table - IDs - by Narf - 03-21-2017, 03:09 PM
RE: Database session table - IDs - by fmertins - 03-22-2017, 06:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB