Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/07/2011, 10:40
eldan2002
 
Fecha de Ingreso: enero-2011
Mensajes: 46
Antigüedad: 13 años, 3 meses
Puntos: 2
Respuesta: Cambia session

si. tiene su logout.php y efectivamente. tengo el session_start(); antes de asignar las variables.....

cuando cambia el valor de id_usuario (cuando doy a click a otro modulo) me desloguea ingresando a este codigo


<?php session_start();

if(!$_SESSION['id_usuario'] or $_SESSION['id_usuario']=="" ){ ?>
<img src="../_img_site/logo.png" alt="Administracion - CaracasDesign.com, C.A" style=" text-align:center;" class="centeredImg" border="0"/>
<h1 style="display: block; width: 350px; font-size: 14px; line-height: 20px; margin-bottom: 10px; text-align:center">Canigua.com</h1>
<p style="margin-left: 8px; width: 100%; background-color: transparent ! important; text-align:center">
No ha ingresado correctamente ó su sesión expiró. <br/>
Por Ingrese nuevamente su cédula y password
<script>
alert("Error de acceso");
window.location.href="../index.php";
</script>
</p>
<? } ?> .



y este es mi logout.php
<? session_start();
session_unset();
session_destroy();
?>

<script>
window.location.href="../../index.php";
</script>