![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
06/08/2012, 11:49
|
![Avatar de luisgarro_092](http://static.forosdelweb.com/customavatars/avatar467576_1.gif) | | | Fecha de Ingreso: junio-2012
Mensajes: 17
Antigüedad: 12 años, 7 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>";
}
?> |