PHP Classes

Store session in database

Recommend this page to a friend!

      PHP Classes blog  >  Fix the AJAX Requests...  >  All threads  >  Store session in database  >  (Un) Subscribe thread alerts  
Subject:Store session in database
Summary:For me better solution is to store session in database
Messages:2
Author:Nikola Radovanovic
Date:2015-05-04 11:23:35
Update:2015-05-04 23:17:44
 

  1. Store session in database   Reply   Report abuse  
Picture of Nikola Radovanovic Nikola Radovanovic - 2015-05-04 19:45:03
By storing session in database you don't have file locking and you have some extra benefits as easier access to all logged users and their info.

  2. Re: Store session in database   Reply   Report abuse  
Picture of Eslam Mahmoud Eslam Mahmoud - 2015-05-04 23:17:44 - In reply to message 1 from Nikola Radovanovic
Thanks for the tip,

Also with session in DB will face another type of locking developers need to check this
dev.mysql.com/doc/refman/5.0/en/int ...