| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2011-11-23 03:19 UTC] yohgaki@php.net
 
-Status: Open
+Status: Feedback
  [2011-11-23 03:19 UTC] yohgaki@php.net
  [2013-02-18 00:35 UTC] php-bugs at lists dot php dot net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 02:00:01 2025 UTC | 
Description: ------------ Was doing some debugging on our session class and wanted to start from scratch on a few tests so we came up with the following, just to see how frequently we his collisions using the default session configs. It appears that session_regenerate_id quits regenerating after 114 runs, after which the function simply fails. Test script: --------------- $arr = array(); session_id(); session_start(); for( $i = 0; $i <= 100000; $i++ ) { $ses = session_id(); if(!session_regenerate_id(true) ) { exit; } echo "Session: ". $ses. "\n"; $arr[$ses]++; } print_r( array_count_values( $arr ) ); Expected result: ---------------- Every call to session_regenerate_id and then to session_id would result in a new ID, and without limit.