Tema: sesiones
Ver Mensaje Individual
  #6 (permalink)  
Antiguo 09/11/2009, 11:04
Avatar de dcreate
dcreate
 
Fecha de Ingreso: octubre-2009
Ubicación: Veracruz
Mensajes: 536
Antigüedad: 14 años, 6 meses
Puntos: 22
Respuesta: sesiones

tambien lo q puedes hacer esmandar a una pagina auxiliar como por ejemplo

dentro.php


Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<form id="form1" name="form1" method="get" action="otro.php">
<label>
<input type="submit" name="Submit" value="Enviar" />
</label>
</form>
</body></html>
y otro.php

Cita:
<?php
session_destroy();
echo '<script>document.location="index.php";</script>';
?>
en otro cierra o destuye la sesion y te manda a index.php q es tu pagina de inicio