note 93673 added to function.session-start
| From: | Charlie at NOSPAM dot example dot com | Date: | Tue, 22 Sep 2009 14:04:44 +0000 |
| Subject: | note 93673 added to function.session-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-160924@lists.php.net to get a copy of this message | ||
Be warned that depending on end of script to close the session will effectively serialize concurrent
session requests. Concurrent background "data retrieval" (e.g. applications such as AJAX
or amfphp/Flex) expecting to retrieve data in parallel can fall into this trap easily.
Holding the session_write_close until after an expensive operation is likewise problematic.
To minimize effects, call session_write_close (aka session_commit) as early as practical (e.g.
without introducing race conditions) or otherwise avoid the serialization bottleneck.
----
Server IP: 209.41.74.194
Probable Submitter: 70.132.10.21
----
Manual Page -- http://www.php.net/manual/en/function.session-start.php
Edit -- https://master.php.net/note/edit/93673
Del: integrated -- https://master.php.net/note/delete/93673/integrated
Del: useless -- https://master.php.net/note/delete/93673/useless
Del: bad code -- https://master.php.net/note/delete/93673/bad+code
Del: spam -- https://master.php.net/note/delete/93673/spam
Del: non-english -- https://master.php.net/note/delete/93673/non-english
Del: in docs -- https://master.php.net/note/delete/93673/in+docs
Del: other reasons-- https://master.php.net/note/delete/93673
Reject -- https://master.php.net/note/reject/93673
Search -- https://master.php.net/manage/user-notes.php