[dev] Re: [cvs] commit: horde login.php imp redirect.php
Chuck Hagenbuch
chuck at horde.org
Mon Feb 10 09:13:55 PST 2003
Quoting Eric Rostetter <eric.rostetter at physics.utexas.edu>:
> I don't think posix extensions are enabled in php by default, are they?
> Assuming they are not, then we wouldn't want to use them (posix_getpid).
This is the code block in CVS:
// Make sure to force a completely new session ID.
if (isset($GLOBALS['UNIQUE_ID'])) {
$new_session_id = $GLOBALS['UNIQUE_ID'];
} elseif (function_exists('posix_getpid')) {
$new_session_id = md5(microtime() . posix_getpid());
} else {
$new_session_id = md5(uniqid(mt_rand(), true));
}
session_id($new_session_id);
-chuck
--
Charles Hagenbuch, <chuck at horde.org>
must ... find ... acorns ... *thud*
More information about the dev
mailing list