Hola!

Registrándote como bakuno podrás publicar, compartir y comunicarte en privado con otros bakuos :D

Regístrame ya!

SESIONES PHP Y ORACLE

richiarcos

Bovino adolescente
Desde
13 Sep 2008
Mensajes
52
INICIO DOS SESIONES CON DIFERENTES USUARIOS EN EL MISMO EXPLORADOR. CUANDO CIERRO LA SESIÓN DEL USUARIO "Y" Y ME DIRIJO A LA DEL USUARIO "X" PARA SEGUIR NAVEGANDO, ESTA SE CIERRA TAMBIÉN.
SI INICIO SESION DEL USUARIO "Y" EN IE, E INICIO SESIÓN DEL USUARIO "X" EN FIREFOX; Y CIERRO LA SESIÓN DEL USUARIO "X", LA SESIÓN DEL USUARIO "Y" SIGUE ACTIVA SIN NINGUN PROBLEMA.

LA SOLUCIÓN ES ASIGNAR UN ID DE SESIÓN A CADA USUARIO???

COMO SIEMPRE GRACIAS POR SU APOYO!

ESTE ES EL CÓDIGO DE AUTENTIFICACIÓN DE USUARIO

PHP:
<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>????</title>

</head>

<body>

<?php
include("config-oracle.php"); 

 //Declaración de varibales
 
	$var_email = $_POST["email"];
	$var_pass = $_POST["pass"]; 
    
	$usuarios = oci_parse($conexion, "SELECT * FROM abogado WHERE email= '".$_POST['email']."' AND pass='".$_POST['pass']."'");     
   
    oci_execute($usuarios); 
  
    if($user_ok = oci_fetch_array($usuarios))  
    { 
	//print_r($user_ok);
    session_register("nomAbogado"); 
    session_register("apPatA"); 
    session_register("apMatA"); 
    session_register("usuario"); 
    
   $_SESSION["autentificado"]="1";
    $_SESSION["usuario"] = $user_ok["EMAIL"];    
    $_SESSION["nomAbogado"] = $user_ok["NOMABOGADO"];  
    $_SESSION["apPatA"] = $user_ok["APPATA"]; 
    $_SESSION["apMatA"] = $user_ok["APMATA"]; 
    $_SESSION["tel"] = $user_ok["TEL"]; 
	
    header("Location: aplicacion_segura.php"); 
} else { 
    header("Location: index.php?errorusuario=si"); 
} 
?>

</body>
</html>
 
Volver
Arriba