PDA

View Full Version : temp folder



bernie1
May 2nd, 2005, 06:35 AM
is there any way to automatically delete the files in tempotay internet files folder once the session expired..
for example when the client logs in to their own account in my website for sure all the content is automatically saved to my temporary internet files folder.. when the user logs out and the current session expired, is there any possible way to delete the content of my website from the temporary internet file folder....
is there any script to delete that..... thanks...:(

teiz77
May 2nd, 2005, 07:54 AM
just make sure it doesn't get cached. With PHP you send some extra header information, like:


<?php
// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);

// HTTP/1.0
header("Pragma: no-cache");
?>

and with ASP:


<% Response.CacheControl = "no-cache" %>
<% Response.AddHeader "Pragma", "no-cache" %>
<% Response.Expires = -1 %>

bernie1
May 2nd, 2005, 09:00 PM
thank you very much teiz77, i will try your code...