![]() |
CodeIgniter lost my 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: CodeIgniter lost my session (/showthread.php?tid=33350) |
CodeIgniter lost my session - El Forum - 08-23-2010 [eluser]Lokut Da[/eluser] Hey! I have a problem with CI. CI sometimes lose my session and do not know why. I think, CI supports a maximum bytes of sessions. I guess... What do u think? Thanks in advance. CodeIgniter lost my session - El Forum - 08-24-2010 [eluser]InsiteFX[/eluser] Use database sessions! Cookies 4kb, but some browsers have raised the limit. InsiteFX CodeIgniter lost my session - El Forum - 08-24-2010 [eluser]CI_avatar[/eluser] what are the values saved in CI sessions? CodeIgniter lost my session - El Forum - 08-26-2010 [eluser]minhbu[/eluser] pls try native session http://codeigniter.com/wiki/Native_session/ CodeIgniter lost my session - El Forum - 08-26-2010 [eluser]Lokut Da[/eluser] Hey! thanks for ur answers ![]() Let me check the database sessions and will coment about that. Regards. CodeIgniter lost my session - El Forum - 08-26-2010 [eluser]WanWizard[/eluser] [quote author="minhbu" date="1282826298"]pls try native session http://codeigniter.com/wiki/Native_session/[/quote] Why? What does this solve? CodeIgniter lost my session - El Forum - 08-26-2010 [eluser]Lokut Da[/eluser] Hi again... I checked the database session and I continue with the same problem ![]() I writed the next code in my controller: Code: public function index() When I do update on my browser on index page, I can see the result: Code: Array But if I change to the page "procesar.php": Code: public function procesar() I can't see my session array ![]() What do u think? Regards. CodeIgniter lost my session - El Forum - 08-26-2010 [eluser]bretticus[/eluser] Is "processar.php" a controller file? Or do you browse directly to that file? CodeIgniter lost my session - El Forum - 08-26-2010 [eluser]Lokut Da[/eluser] Hi bretticus... My controller is "probando". Sorry, let me to post the complete code of my controller: Code: class Probando extends Controller CodeIgniter lost my session - El Forum - 08-26-2010 [eluser]tkyy[/eluser] as the first response said you should use database sessions. the only reason not to use database sessions is the very, very slight overhead from the extra queries. being able to store virtually unlimited amounts of data into the secure database is surely a win over storing the encrypted values into a cookie with a set length. the first social networking site i coded did just that, stored a massive amount of data into the cookie. my users table got so large that i eventually had to pick and choose which values i needed to store in the database because it wasn't creating the sessions properly since it made the cookie explode. eeeeek, avoid the mistakes i made please. |