Interesting information

Recommend this page to a friend!

      PHP Classes blog  >  Fix the AJAX Requests...  >  All threads  >  Interesting information  >  (Un) Subscribe thread alerts  
Subject:Interesting information
Summary:It is the first time I heard about file locking in PHP
Messages:2
Author:Eduardo Weidman Barijan
Date:2015-05-04 13:50:23
Update:2015-05-04 23:16:47
 

  1. Interesting information   Reply   Report abuse  
Picture of Eduardo Weidman Barijan Eduardo Weidman Barijan - 2015-05-04 19:46:37
I never thought that PHP did a file locking with sessions. Interesting info. Very useful for AJAX requests indeed, as a full page load wouldn´t suffer from locking. But sometimes frameworks can save sessions in the database. How does that scenario affects the AJAX request?

  2. Re: Interesting information   Reply   Report abuse  
Picture of Eslam Mahmoud Eslam Mahmoud - 2015-05-04 23:16:47 - In reply to message 1 from Eduardo Weidman Barijan
Hello,

Saving it to Database will element the file locking problem but it must be tested which is faster, if you added the session write close or the connection on DB? this also may depend on the framework itself.

 

For more information send a message to info at phpclasses dot org.