Hola a todos mis amigos de foros del web tengo un problema resulta que en mi sistema trabajo con sesiones, tengo varios frame como pie central banner menu etc.
Resulta que al restringir la pagina cuando le doy clic al menu me redirecciona al principo.
No deberia ser asi, ya que me eh logiado bien.
Creo que el problema es en la sesion.
Haber pongo parte de mi codigo.
usuarios.php
<?
session_start();
require_once "../security.php";
if($HTTP_REFERER=="../view/menu.html")
{
unset($_SESSION["lista_usuarios"]);
}else{
}
unset($_SESSION["lista_celulares"]);
unset($_SESSION["lista_modelos"]);
unset($_SESSION["lista_ufunciones"]);
unset($_SESSION["lista_ots"]);
if(isset($_SESSION["lista_usuarios"])){
$lista_usuarios=$_SESSION["lista_usuarios"];
}
if(isset($_SESSION["error"])){
$error=$_SESSION["error"];
unset($_SESSION["error"]);
}
$mensaje = null;
if (isset($_SESSION["msj"])) {
$mensaje = $_SESSION["msj"];
unset($_SESSION["msj"]);
}
menu
<script type="text/javascript">
<!--
stm_bm(["menu31d2",860,"","../imagenes/blank.gif",0,"","",0,0,150,0,1000,1,0,0,"","",6710 8897,0,0,2,"hand","hand",""],this);
stm_bp("p0",[1,4,0,0,0,3,0,0,100,"",-2,"",-2,50,0,0,"#999999","#FFFFFF","",0,0,0,"#FFFFFF"]);
stm_ai("p0i0",[0,"Celulares","","",-1,-1,0,"../view/celulares.php","mainFrame","","","","",0,0,0,"","" ,0,0,0,0,1,"#FFFFFF",0,"#F2F7FD",0,"","",3,3,1,1," #FFFFFF","#83AADA","#000000","#000000","8pt Verdana","8pt Verdana",0,0],155,0);
stm_aix("p0i2","p0i0",[0,"Modelos","","",-1,-1,0,"../view/modelos.php"],155,0);
stm_aix("p0i3","p0i2",[0,"Ots","","",-1,-1,0,"../view/ots.php"],155,0);
stm_aix("p0i3","p0i2",[0,"Unidades Funciones","","",-1,-1,0,"../view/unidades_funciones.php"],155,0);
stm_aix("p0i3","p0i2",[0,"Usuarios","","",-1,-1,0,"../view/usuarios.php"],155,0);
stm_ep();
stm_em();
//-->
</script>
security
<?
@session_start();
if ($_SESSION[admin]=="")
{
echo "<script>alert('Esta area es restringida');window.location='login.php'</script>";
}
?>
Coloco dos imagenes para que me entiendan mejor mil gracias.
http://www.imaxenes.com/imagen/restr...n03i4.jpg.html
http://www.imaxenes.com/imagen/restr...i42rp.jpg.html
Apoyenme con ese tema.