Código PHP:
<?php
session_start();
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
// siempre modificado
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// HTTP/1.0
header("Pragma: no-cache");
?>
Por si acaso, todas las páginas (inclusive la de registro) pasan por el index.php
y para salir, envío a una página end.php
Código PHP:
<?php
$_SESSION=array();
session_destroy();
?>
<h3 align="center">SU SESIÓN HA TERMINADO</h3>
<p>En unos momentos usted regresará a la página de registro....</p>
<p>Si usted no desea esperar haga click <a href="?mod=home"><strong>aquí</strong></a></p>
<?php
exit();
?>