• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
limit to session storage?

#1
[eluser]dadamssg[/eluser]
Is there a limit to how many items/data you can store in a session?

It seems my script doesn't store certain variables when they should be. Maybe i have too much information in them?

#2
[eluser]rhollister[/eluser]
Are you referring to a PHP session or the CI default "session" object. If you are referring to the default CI session it is stored in browser cookies so the CI user guide page says:

Cookies can only hold 4KB of data, so be careful not to exceed the capacity.

I would recommend moving to a $_SESSION or a database session. Looks like CI 2.0 now supports sessions stored in the DB. I integrated the PHP session into my application fairly easily:

http://codeigniter.com/wiki/PHPSession/


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.