
29/07/2005, 17:36
|
 | | | Fecha de Ingreso: noviembre-2004 Ubicación: Villa Ballester Bs-As|Ar
Mensajes: 2.002
Antigüedad: 20 años, 4 meses Puntos: 34 | |
Asi como haces, has:
$_SESSION['history'] = $_SERVER['PHP_SELF'];
if(isset($_SERVER['QUERY_STRING'])) $_SESSION['history'] .= '?'.$_SERVER['QUERY_STRING'];
Despues, en el login, manda a $_SESSION['history'], y si esta vacia, fijate de enviarla a la home. EJ:
cuando redireccionas:
$history = isset( $_SESSION['history'] ) ? $_SESSION['history'] : 'home.php';
header("Location: ". $history );
Otra es poner los headers para no chahee, y luego hacer un simple echo "<script>history.back();</script>";.
Dichos head son:
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
Espero sea eso y te sirva |