Ver Mensaje Individual
  #4 (permalink)  
Antiguo 05/11/2015, 14:21
Avatar de gonzaherrera77
gonzaherrera77
 
Fecha de Ingreso: noviembre-2015
Mensajes: 60
Antigüedad: 8 años, 6 meses
Puntos: 7
Respuesta: cerrar session php

A ver proba con esto

Código PHP:
Ver original
  1. <?php
  2.    if(isset($_SESSION["clave"])) {
  3. ?>
  4. <!doctype html>
  5. <html>
  6.    <head>
  7.       <meta charset="utf-8">
  8.       <title>Documento sin tÌtulo</title>
  9.    </head>
  10.    <body>
  11.       <img src="ave fenix.jpg">
  12.       <a href="cerrar.php">cerrar</a>
  13.    </body>
  14. </html>
  15. <?php
  16. }
  17. else {
  18.    header("location:login1.php");
  19.    }
  20. ?>

¡Saludos!