problema basico con las sessiones

nelsonortegam
19 de Diciembre del 2003
hola amigos empieso en esto y quisiera saber porqué cuando digito lo siguiente:

<?php
session_register('contador');
echo '<a href="'.$PHP_SELF.'?'.SID.'">Contador vale: '.++$contador.'</a>';
?>

me aparecen los siguientes errores

Warning: session_register(): open(/tmpsess_1a029841487af721142ae2137cb28351, O_RDWR) failed: No such file or directory (2) in D:nelsonphpdocphpss.PHP on line 2

Warning: session_register(): Cannot send session cookie - headers already sent by (output started at D:nelsonphpdocphpss.PHP:2) in D:nelsonphpdocphpss.PHP on line 2

Warning: session_register(): Cannot send session cache limiter - headers already sent (output started at D:nelsonphpdocphpss.PHP:2) in D:nelsonphpdocphpss.PHP on line 2
Contador vale: 1
Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0

Warning: Unknown(): open(/tmpsess_1a029841487af721142ae2137cb28351, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

por favor ayuda

de antemano grecias


rargueso
19 de Diciembre del 2003
No entiendo lo que quieres hacer. Explicate un poco.