Tema: Header
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/12/2010, 06:33
Lechu_
 
Fecha de Ingreso: enero-2010
Mensajes: 128
Antigüedad: 14 años, 3 meses
Puntos: 2
Header

Hola

Quiero poner una cabecera a una pagina web y el problema es que me da error
(Warning: Cannot Modify Header Information)

Código:
<?php
header("Expires: Tue, 03 Jul 2001 06: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");

session_start();
include('funciones.php');
include('header.php');
include('menu.php');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Red</title>
<meta http-equiv="Content-Language" content="English" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<script type="text/javascript" language="javascript" src="js/funciones.js"></script>

</head>
<body>	
    <h2>INICIO DE SESION</h2>
	<form name="ini_sesion" id="usuario" action="loguear.php" method="POST">
		
	<table> 		
	<tr>
	  <td><p>Usuario:</p></td>
	  <td><input type="text" name="us_log" value="" id="us_log"/></td>	  
	  <td><div id="log_nick" style="display:inline; color:red"></div></td>	  
	</tr>

   <<instrucciones...>>
   <<instrucciones...>>
   <<instrucciones...>>

</body>
</html>
Lo que quiero es que ésta pagina no se guarde en cache, ent cuando se recarga la pagina o se da atras con el boton del navegador la pagina debe cargarce nuevamente.

Aclaracion: uso sesiones (php). ¿Seria correcto usar session_cache_limiter ('private')?, dejando todo en el cache, excepto lo que yo diga que no guarde en cache mediante los header (como quiero hacer con ésta página).

Si no soy claro avisen que lo escribo de nuevo.

Slds.
__________________
Por favor evitar comentarios del estilo "leer el manual...", ya lo hice pero aun tengo dudas, por eso pregunto acá