SOLUCION RESUELTA SOBRE PROBLEMAS EN VARIABLES SESSIONES EN WINDOWS

From: Date: Mon, 17 Mar 2003 19:22:05 +0000
Subject: SOLUCION RESUELTA SOBRE PROBLEMAS EN VARIABLES SESSIONES EN WINDOWS
Groups: php.general.es 
Request: Send a blank email to general-es+get-33811@lists.php.net to get a copy of this message
Gracias a todos por las respuestas que me dieron, despues de mucho investigar ya se cual era mi problema (tengo php 4.3.0, apache 2.0 y win200 prof.), lo que pasa es que yo tengo el trackvar de php activo (siempre activo a partir de las version 4.1.0) y mi register_global desactivo, cuando es asi uno no usa la funcion session_register, si no la variables $_session['variables'], ya que la funcion session_register no funciona cuando en el php.ini esta el trackvars actiuvado y el register_globals desactivado este era el emsnaje de error: Warning: session_register() [function.session-register]: Cannot send session > cookie - headers already sent by (output started at > C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\~scp.php:6) in > C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\~scp.php on line 7 > > Warning: session_register() [function.session-register]: Cannot send session > cache limiter - headers already sent (output started at > C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\~scp.php:6) in > C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\~scp.php on line 7 y asi era mi codigo : <? session_star(); session_register('cont'); ?> <html> <head> <title>Titulo</title> </head> <body> </body> </html> ahora mi codigo es asi: <? session_star(); $_session['cont']; ?> <html> <head> <title>Titulo</title> </head> <body> </body> </html> y en el php.ini le puse la directiva session.start=1 y listo todo me funciona bien. Les paso ese datos a datos lo que estamos en el mismo problemas Megabyte Saludos desde Panamá --------------------------------- Do You Yahoo!? Todo lo que quieres saber de Estados Unidos, América Latina y el resto del Mundo. Visíta Yahoo! Noticias.

« previous php.general.es (#33811) next »