This is a discussion on Info on removing pages history within the PHP Programming forums, part of the Web Development category; hi, Here small information to clear cache through PHP page Rather than disable the back/forward buttons on the browser, ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| hi, Here small information to clear cache through PHP page Rather than disable the back/forward buttons on the browser, you can send a header with your pages telling the browser not to cache the pages. You can do this in PHP by setting an older date in the expires header and sending a pragma: no-cache directive. Doing this will give the users a page expired message instead of showing the pages from the cache. <?php header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Pragma: no-cache'); ?> Place this on all the pages which you don't want to show the user after they logout.
__________________ With, J. Jeyaseelan Everything Possible |
| Sponsored Links |
| |||
| Hi all, following code will help u for clear the cache in php... Code: <?
header("Pragma: no-cache");
header("Cache: no-cahce");
?>
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Removing multiple spaces from string | bluesky | C# Programming | 3 | 03-19-2008 06:17 AM |
| Removing duplicate rows in a DataSet | shaalini | ASP and ASP.NET Programming | 2 | 02-13-2008 09:33 PM |
| History on PHP | Jeyaseelansarc | PHP Programming | 1 | 07-16-2007 06:34 AM |
| what is best storage engine for history tables ? | write2ashokkumar | Database Support | 1 | 07-12-2007 08:46 AM |
| HTML DOM History Object | Jeyaseelansarc | HTML, CSS and Javascript Coding Techniques | 0 | 05-21-2007 12:21 AM |