note 113414 added to sessionhandlerinterface.open

From: Date: Tue, 08 Oct 2013 14:46:27 +0000
Subject: note 113414 added to sessionhandlerinterface.open
Groups: php.notes 
Request: Send a blank email to php-notes+get-196496@lists.php.net to get a copy of this message
You should lock your program for as shorter as possible. Lock it straight before read/write operation and unlock it just after this operation. Otherwise you will face with perfomance degradation and even lock your program at all. Example. You bind your session to db. Your open method opens the db connection and locks it. No other parallel requests will not be possible until the hole request to your site will be finished (and session close will be called) ---- Server IP: 69.147.83.199 Probable Submitter: 195.93.246.47 ---- Manual Page -- http://php.net/manual/en/sessionhandlerinterface.open.php Edit -- https://master.php.net/note/edit/113414 Del: integrated -- https://master.php.net/note/delete/113414/integrated Del: useless -- https://master.php.net/note/delete/113414/useless Del: bad code -- https://master.php.net/note/delete/113414/bad+code Del: spam -- https://master.php.net/note/delete/113414/spam Del: non-english -- https://master.php.net/note/delete/113414/non-english Del: in docs -- https://master.php.net/note/delete/113414/in+docs Del: other reasons-- https://master.php.net/note/delete/113414 Reject -- https://master.php.net/note/reject/113414 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#196496) next »