Re: Excel headers not working anymore
| From: | Martin Norland | Date: | Fri, 11 Feb 2005 20:04:17 +0000 |
| Subject: | Re: Excel headers not working anymore | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-38564@lists.php.net to get a copy of this message | ||
Perry, Matthew (Fire Marshal's Office) wrote:
Wow! Removing the file that controlled the session array fixed the problem (suggestion 2). I was using ssl and session data and would never have guessed it would trip things up. I would have stared at this problem for weeks and probably not have solved the problem. Also I will change my code to include <?php instead of <? from now on just to be sure. Thank you very much for your help. - Matthew PerryThe following is what I use - it allows caching but forces it not to be cached (it's a report, so it's changing every time). It's a little redundant, because these items are a little bit of a pain to follow. I have these running before the session is set - you may only need the session_cache_limiter call, come to think, since I'm setting these before the session starts and the others likely get overwritten. <?php header('Cache-Control: private, must-revalidate'); header('Pragma: private'); // allow private caching header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // set to be modified 'now' session_cache_limiter("private, must-revalidate"); // allow private caching, but cache MUST check output // rest of script ?> Cheers, -- - Martin Norland, Sys Admin / Database / Web Developer, International Outreach x3257 The opinion(s) contained within this email do not necessarily represent those of St. Jude Children's Research Hospital.