CodeIgniter Forums
Problem when save a big text in codeigniter session - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Problem when save a big text in codeigniter session (/showthread.php?tid=54535)



Problem when save a big text in codeigniter session - El Forum - 09-13-2012

[eluser]nikos[/eluser]
Hi Guys,

I am facing a serious problem.

When try to save a big text in session then something happened and the current text do not saving to session.

Is there a way to save big text in codeinigter session?

Please help me


Problem when save a big text in codeigniter session - El Forum - 09-13-2012

[eluser]boltsabre[/eluser]
By default the CI session is saved as a cookie, which has a max size of 4k. You will have to change it and save your session into the database instead. Check out the session page in the user guide, it tells you how to do it.




Problem when save a big text in codeigniter session - El Forum - 09-13-2012

[eluser]nikos[/eluser]
thanks a lot for your help...

I just find that the codeigniter use cookie and not session.

You are 100% correctly!!

Thanks a lot for you help.


Problem when save a big text in codeigniter session - El Forum - 09-13-2012

[eluser]boltsabre[/eluser]
No worries champ! And using the DB session solution is a little more secure than the default cookie!