Page 1 of 1

how do delete all of the user's Temporary Internet Files?

Posted: Tue Apr 10, 2007 6:07 am
by Betty_S
how do delete all of the user's Temporary Internet Files?

Posted: Tue Apr 10, 2007 8:05 am
by feyd
You don't. It's not possible unless you find a hole in the security, in which case you may find yourself visited by scary men in suits who carry guns.

Posted: Tue Apr 10, 2007 8:09 am
by andym01480
You can't! PHP operates on the server and sends html to the browser. You could write a virus, but that would be immoral and illegal!

If the reason why you are asking is that a user's browser brings up an old version of a page rather than a new one - you can force a fresh page by setting the headers to no-cache. Internet Explorer is a bit buggy on how it responds.

something like

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
<META HTTP-EQUIV="Expires" CONTENT="-1"> 
</head>
<body onLoad="if ('Navigator' == navigator.appName) document.forms[0].reset();" >
at the top and

Code: Select all

</body>
<HEAD>


<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

</HEAD>
</html>
which before anyone points out will not validate! But it will work!
http://support.microsoft.com/kb/222064 is microsoft's solution

Posted: Tue Apr 10, 2007 9:04 am
by Chris Corbyn
andym01480 wrote:

Code: Select all

</body>
<HEAD>


<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

</HEAD>
</html>
which before anyone points out will not validate! But it will work!
http://support.microsoft.com/kb/222064 is microsoft's solution
Nope. But this will validate:

Code: Select all

</body>
<!--[if IE]>
<HEAD>


<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

</HEAD>
<![endif]-->
</html>
:)

Posted: Tue Apr 10, 2007 11:18 am
by RobertGonzalez
You can also set the response headers in the PHP Code.

Posted: Tue Apr 10, 2007 11:59 am
by Dale
If you was running a local server (eg; AppServ) on your computer, you could remove YOUR Temp Int Files but no one elses.

Posted: Tue Apr 10, 2007 3:42 pm
by feyd
Dale wrote:If you was running a local server (eg; AppServ) on your computer, you could remove YOUR Temp Int Files but no one elses.
Provided the server is logged in as "you." :)