CodeIgniter Forums
Session drivers - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Session drivers (/showthread.php?tid=69017)



Session drivers - omid_student - 09-27-2017

Hello
There is multi driver for session (file,database and other)
What is different between this driver?


RE: Session drivers - rtenny - 09-27-2017

The drives store the session data in different location.
file writes all data to the harddisk. On a busy site you can end up with thousands of files in the folder and a hight IO load.
database will add the session data into a database which normally has less IO load then direct file use.

But this depends also on your hardware and server setup.


RE: Session drivers - omid_student - 09-27-2017

(09-27-2017, 08:32 AM)rtenny Wrote: The drives store the session data in different location.
file writes all data to the harddisk. On a busy site you can end up with thousands of files in the folder and a hight IO load.
database will add the session data into a database which normally has less IO load then direct file use.

But this depends also on your hardware and server setup.

Which one do you suggest for use?


RE: Session drivers - rtenny - 09-27-2017

As I already said in my post. It depends on you hardware.
Personally i always use Database. But then all my databases have there own server and do not share the web server resources.


RE: Session drivers - omid_student - 09-27-2017

(09-27-2017, 08:51 AM)rtenny Wrote: As I already said in my post. It depends on you hardware.
Personally i always use Database. But then all my databases have there own server and do not share the web server resources.

Thanks mr


RE: Session drivers - InsiteFX - 09-28-2017

Another thing to keep in mind when choosing a driver is the speed.