PHP Session optimized source code
PHP session the same client request when the server session does not end, the next request cannot be done!
For example, the following code:
Client
Server
Session_Start ();
Sleep (2);
Echo ' {json: ' repsonse '. $_get["Call"]. '"}';
?>
The above client loading takes 10S more time.
The session can be used Session_write_close (); Close, the next request can be executed immediately!
Cases:
Session_Start ();
Session_write_close ();
Sleep (2);
Echo ' {json: ' repsonse '. $_get["Call"]. '"}';
?>
The above code client load time reduced from 10s to 2s time!
http://www.bkjia.com/PHPjc/853762.html www.bkjia.com true http://www.bkjia.com/PHPjc/853762.html techarticle PHP session to optimize the source PHP session of the same client request when the server session does not end, the next request cannot be done! For example the following code: client:html head meta http-equiv=content-ty ...