Re: [PHP] Help me to win the battle with browser's cache

2001-11-12 Thread Girish Nath

Hi

I've found some code which i put it into this function. I've never got the
meta tag technique to work but this seems to do the trick.

Call noCache() before outputting anything to the page.

function noCache() {
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");// Date in the past
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always
modified
header ("Cache-Control: no-cache, must-revalidate");  file://HTTP/1.1
header ("Pragma: no-cache");  // HTTP/1.0
}

Regards


Girish


- Original Message -
From: "Olexandr Vynnychenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 12, 2001 1:32 PM
Subject: [PHP] Help me to win the battle with browser's cache


> Hello php-general,
>
>   I have index.php, which has Log out.
>   When I click it, I am logged out the site. But I type "index.php" in
>   browser's address bar, press Enter and ... it shows "non-logouted"
>   page. What should I write in php code to tell browser something like
>   "forget about old page, don't display it, get the newest version"?
>   Some time ago I tried to do that in several ways and nothing gived
>   100% result. And other thing I saw was that Netscape and Explorer
>   behave in different ways in such cases. Could someone help me? Maybe
>   this topic was discussed before, but still... I appreciate greatly
>   any suggestion.
>
> --
>  Olexandr Vynnychenko  mailto:[EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Help me to win the battle with browser's cache

2001-11-12 Thread Balaji Ankem

Hi,
  me also faced many probs last 3 months back and i overcome that.
solution
-
use session variables..

register login info as session vars and during logout unregister...

This is the solution to u'r problem..

-

All the best
-Balaji

- Original Message - 
From: "Olexandr Vynnychenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 12, 2001 7:02 PM
Subject: [PHP] Help me to win the battle with browser's cache


Hello php-general,

  I have index.php, which has Log out.
  When I click it, I am logged out the site. But I type "index.php" in
  browser's address bar, press Enter and ... it shows "non-logouted"
  page. What should I write in php code to tell browser something like
  "forget about old page, don't display it, get the newest version"?
  Some time ago I tried to do that in several ways and nothing gived
  100% result. And other thing I saw was that Netscape and Explorer
  behave in different ways in such cases. Could someone help me? Maybe
  this topic was discussed before, but still... I appreciate greatly
  any suggestion.

-- 
 Olexandr Vynnychenko  mailto:[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




---
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]