Hi,
I have one php page in my site, and I don't want it to keep cookies,
so on every new load of the page all the content will load over new.
How can I do it?
Thanks
Hi,
I have one php page in my site, and I don't want it to keep cookies,
so on every new load of the page all the content will load over new.
How can I do it?
Thanks
It's not using cookies unless you've told it too. It's probably caching
http://support.microsoft.com/kb/234067<HTML><HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD><BODY>
</BODY>
</HTML>
or
PHP Code:<?php
header("Cache-Control: no-cache");
header("Pragma: no-cache");
?>
<html>
<head>
</head>
<body>
</body>
</html>
Corrections to my coding/thoughts welcome.
Hi, thanks, nice to learn something new![]()
Last edited by d-machine; 03-30-2010 at 03:21 PM.
If you want to clear cookies, then you can do it like this:
1. Loop through the array $_COOKIE
2. For each entry, set it to '' (blank) and set the expiration date in the past-- in other words delete the cookie, but there is no direct way to delete (removing the value and setting the data in the past is the standard method).
If you have already solved your initial problem, then this post is not needed, but it might be worthwhile in other cases.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Bookmarks