how to clear browser cache in php after logout

Recommended Answers

At the top of the Firefox window, click on the Firefox button (Tools menu in Windows XP) and then click Options
Select the Advanced panel.
Click on the Network tab.
In the Cached Web Content section, click Clear Now.

Jump to Post

All 4 Replies

At the top of the Firefox window, click on the Firefox button (Tools menu in Windows XP) and then click Options
Select the Advanced panel.
Click on the Network tab.
In the Cached Web Content section, click Clear Now.

i need a code to put in php file

i need a code to put in php file

Not possible in PHP.

<?php
header("Expires: Tue, 01 Jan 2000 00:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>

may these help you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.