note 78394 added to function.session-start

From: Date: Wed, 10 Oct 2007 06:13:08 +0000
Subject: note 78394 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-131266@lists.php.net to get a copy of this message
Don't *ever* use /dev/random as a session entropy file, because session_handler will hang for a *long* time after open(). This configuration will be *the* overkill: <?php ini_set("session.entropy_file", "/dev/random"); ini_set("session.entropy_length", "512"); ?> Use /dev/urandom instead. The reason for this is (from Wikipedia): A counterpart to /dev/random is /dev/urandom ("unlimited" random source) which reuses the internal pool to produce more pseudo-random bits. This means that the call will not block, but the output may contain less entropy than the corresponding read from /dev/random. We spent 2 days on figuring this out. You have been warned. ---- Server IP: 217.20.138.73 Probable Submitter: 195.228.228.82 ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- https://master.php.net/note/edit/78394 Del: integrated -- https://master.php.net/note/delete/78394/integrated Del: useless -- https://master.php.net/note/delete/78394/useless Del: bad code -- https://master.php.net/note/delete/78394/bad+code Del: spam -- https://master.php.net/note/delete/78394/spam Del: non-english -- https://master.php.net/note/delete/78394/non-english Del: in docs -- https://master.php.net/note/delete/78394/in+docs Del: other reasons-- https://master.php.net/note/delete/78394 Reject -- https://master.php.net/note/reject/78394 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131266) next »