News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Matt Williams' Blog:
Codeigniter Database session fix
August 24, 2010 @ 12:58:15

Matt Williams has a new post to his blog with his own fix to a problem he was having with his CodeIgniter application - the continuous session logouts.

For weeks I tolerated the annoyance of CodeIgniter's Session library logging my out continuously, saying to myself "I works...kind of...I'll fix it later". Eventually the problem started affecting AJAX method calls, large file uploads and simple CRUD operation forms so I began trawling the internet for a fix. After hours and hours, I found that there was no _reliable_ fix to the database sessions library and that the answer was, DON'T USE DATABASES.

The code for the library he found to help with the problem - CI_Native_Session - is included in the post (as written by Dariusz Debowczyk). It uses the native PHP session handling to keep track of the data rather than using a database table to persist users. You can see a demo of it here.

0 comments voice your opinion now!
codeigniter session fix library database


blog comments powered by Disqus

Similar Posts

WeberDev.com: PHP 101 (part 14): Going To The Polls

David Coallier's Blog: Namespaces part 4.1 (What namespaces don't fix (part 1))

Richard Thomas' Blog: First jQPie release, 0.1

WebDeveloperJuice.com: Best in Class Libraries to Generate Excel Reports

Anna Filina: Reduce number of queries


Community Events

Don't see your event here?
Let us know!


framework voicesoftheelephpant api security series community php7 introduction library podcast opinion laravel example language version laravel5 release extension interview list

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework