Ver Mensaje Individual
  #6 (permalink)  
Antiguo 06/08/2012, 11:49
Avatar de luisgarro_092
luisgarro_092
 
Fecha de Ingreso: junio-2012
Mensajes: 17
Antigüedad: 11 años, 10 meses
Puntos: 0
Respuesta: como mantener activa la session en php

AQUI EL CODIGO....




<?
//VALIDACION
if ($_POST["usuario"]=="admo" && $_POST["clave"]=="hello"){
//VALIDACION CORRECTA


session_start();
if (!isset($_SESSION["autentificado"])) {
$_SESSION["autentificado"]= "SI";

}


include '../../_lecorps/es/admo_profiles_sites.php';
}else {
//VALIDACION ERRONEA, ENVIO A LOGIN3.PHP
echo "<h1>ERROR !</h1>
<a href='index.php?changePage=admin'>login</a>";





}



?>