From: [EMAIL PROTECTED] Operating system: win98-redhat7.2 PHP version: 4.1.2 PHP Bug Type: Session related Bug description: session no save data with global_vars=off
Tengo la siguiente duda sobre el manejo de sesiones en php4, todo funciona muy bien cuando habilito las variables globales en el php.ini, pero cuando las pongo en off, no funciona. Agradezco su revision. Saludos y gracias. cesar Ahh por cierto estas pruebas la realize en: Win98-PWS4-PHP4.1.2 y en RedHat7.2-Apache1.3-PHP406 Les paso 2 ejemplos en uno NO funciona y en otro si. session_start(); //EJEMPLO QUE NO FUNCIONA !isset($_SESSION['count']) ? $_SESSION['count'] = 0 : $_SESSION['count']++; // idem con $HTTP_SESSION_VARS echo $_SESSION['count']; =============================================== session_start(); //EJEMPLO QUE FUNCIONA if(!session_is_registered('count')){ session_register('count'); $count = 0; }else{ $count++; } echo $count; -- Edit bug report at http://bugs.php.net/?id=16299&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16299&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16299&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16299&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16299&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16299&r=support Expected behavior: http://bugs.php.net/fix.php?id=16299&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16299&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16299&r=submittedtwice