IT Community - Software Programming, Web Development and Technical Support

Info on removing pages history

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, ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 08-06-2007, 11:46 PM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Info on removing pages history

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-07-2007, 07:18 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Wink Re: Info on removing pages history

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!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-25-2007, 09:04 AM
Sabari Sabari is offline
D-Web Genius
 
Join Date: Jul 2007
Posts: 1,008
Sabari is on a distinguished road
Default Re: Info on removing pages history

This is very useful information, we implement this in our page, it working perfectly. thanks for this info.
__________________
Thanks & Regards
Sabari...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 02:11 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0