Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62508 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76659 invoked from network); 26 Aug 2012 08:57:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Aug 2012 08:57:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.139 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.139 smtp139.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.139] ([67.192.241.139:49863] helo=smtp139.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/3F-06857-EF4E9305 for ; Sun, 26 Aug 2012 04:57:35 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp30.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 5EE413481C8; Sun, 26 Aug 2012 04:57:31 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp30.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id D7AFF348265; Sun, 26 Aug 2012 04:57:30 -0400 (EDT) Message-ID: <5039E4FA.6060102@sugarcrm.com> Date: Sun, 26 Aug 2012 01:57:30 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: Yasuo Ohgaki CC: Ferenc Kovacs , Sherif Ramadan , PHP Internals References: <50364644.1060302@lerdorf.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Session Id Collisions From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > I know session ID collision will not happen most likely, but > there are few people who worries collision. We can check > session ID collision when it is generated. You mean two randomly generated session IDs colliding? I think the probability of it is pretty low. I mean it'd take PHP's random number generator function to generate two equal random numbers in the same microsecond. And these are random 64-bit numbers, so unless you're generating billions of sessions per microsecond I don't think it's a very real concern. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227