Ver Mensaje Individual
  #11 (permalink)  
Antiguo 27/07/2007, 20:20
Avatar de seik!
seik!
 
Fecha de Ingreso: mayo-2006
Mensajes: 492
Antigüedad: 18 años
Puntos: 6
Pregunta Re: no puedo rescatar variables SESSION

Nop.. no me funciona... he leido mucho y nada... no veo el error..

asi kedo donde creo la session
Código:
<?php session_start();
require("../config.inc.php");?>
<?php
$usuario = $_POST["txt_usuario"];
$clave = $_POST["txt_clave"];
// Busca en BD el usuario ingresado
		$sql = "SELECT * ";
		$sql.= "FROM imz.usuario WHERE usu_login='".$usuario."'";
		$rs_datos = select_data($sql, &$f_est, &$c_est);
		$ls_datos = mysql_fetch_array($rs_datos);
		if ($f_est > 0){
			if (strtolower($ls_datos["usu_clave"]) == strtolower($clave)){
				$login = $ls_datos["usu_login"];
				$autentificado = 1;				
				// Inicializamos sesion  
				$_SESSION["login"] = $login;
				$_SESSION["autentificado"] = $autentificado;
				var_dump( $_SESSION );
				header("Location:http://localhost/imz/php/admin_not.php");
				
			}else{
				header("Location:".$gserver."index.php?err=2");
				exit;
					}
		}else{
		header("Location:".$gserver."index.php?err=1");
			exit;
			}
		mysql_free_result($rs_datos);
?>
y aki llamo al direcciono al frame donde pierdo la session

Código:
header("Location:http://localhost/imz/php/admin_not.php");
pagina donde ya no poseo la session

Código:
<?php session_start();
var_dump( $_SESSION );
?>

<html>
<head>
	<title>:: Administración De Noticias ::</title>
</head>
<body>

</body>
</html>
aun aparece vacio.. array(0) { }

ayuda!! =(
__________________
sEIK! -Chile-
Analista Programador.