note 115633 added to sessionhandlerinterface.open
| From: | narf at devilix dot net | Date: | Thu, 28 Aug 2014 15:49:27 +0000 |
| Subject: | note 115633 added to sessionhandlerinterface.open | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200334@lists.php.net to get a copy of this message | ||
The suggestion that you should free the lock as soon as possible is WRONG (and for some reason, I
can't downvote it right now).
Releasing the lock before the write() call is as effective as not using locks at all. The whole
point is that a concurrent read() HAS to be blocked until the session is closed, otherwise
you'll have race conditions.
If you care about the performance aspect, you should take care to call session_write_close() as soon
as possible instead.
----
Server IP: 72.52.91.14
Probable Submitter: 92.247.60.17
----
Manual Page -- http://php.net/manual/en/sessionhandlerinterface.open.php
Edit -- https://master.php.net/note/edit/115633
Del: integrated -- https://master.php.net/note/delete/115633/integrated
Del: useless -- https://master.php.net/note/delete/115633/useless
Del: bad code -- https://master.php.net/note/delete/115633/bad+code
Del: spam -- https://master.php.net/note/delete/115633/spam
Del: non-english -- https://master.php.net/note/delete/115633/non-english
Del: in docs -- https://master.php.net/note/delete/115633/in+docs
Del: other reasons-- https://master.php.net/note/delete/115633
Reject -- https://master.php.net/note/reject/115633
Search -- https://master.php.net/manage/user-notes.php