Ver Mensaje Individual
  #4 (permalink)  
Antiguo 31/08/2005, 08:30
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 5 meses
Puntos: 11
Puede ser asi:

Código PHP:
<?php
   session_start
();
   if( isset(
$HTTP_SESSION_VARS['variable'] )) {
      if(
$HTTP_SESSION_VARS['variable'] == "Miguel") {
        
header("location: siguiente_pagina.php");
        exit();        
      } 
      else {
         
$mensaje="Usuario NO Autorizado";
         
header("Location: pagina_error.php?error=$mensaje");
         exit();
      }
   } 
   else {
       
$mensaje="Sesion no Iniciada";
       
header("Location: pagina_error.php?error=$mensaje");
       exit();
   } 
?>