![]() |
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 - 09-01-2010 [eluser]WanWizard[/eluser] And what else did you change? Because a different session library doesn't change the interaction with the browser, which is were your problem was. @Inst, Where did you get that wisdom? Native (= file based) sessions are only (significantly) faster if you take additional measures, like memcache or ram disks. Native sessions slow down quite rapidly once the number of session files start to grow. With the database you can have hunderds of thousands of session records, without noticable impact on performance. Offcourse you need a decent platform, it's not going to work on a shared server for $5/month. But then again, you wouldn't want to run a high traffic website on such a platform. CodeIgniter lost my session - El Forum - 09-02-2010 [eluser]Lokut Da[/eluser] Hi WanWizard... I changed class Session to class Native Session, and everything work fine ![]() U know, the $_SESSION variable don't need a cookie to work. Regards. CodeIgniter lost my session - El Forum - 09-02-2010 [eluser]WanWizard[/eluser] Oh? And why not? How do you pass the session_id to the client (and back with the next request) if you don't use cookies? The Native Session library (from the Wiki) definately uses a session cookie: Code: // sessions engine should run on cookies to minimize opportunities session_start() creates the session cookie, using cookie parameters defined in php.ini, which are exactly the same parameters as CI's session library uses. If you can configure that properly, you can also configure the CI library properly, so I still don't see a valid reason to switch. |