RE: [PHP] Re: Cache control

2005-04-26 Thread Mark Rees
One rather brute force way to get round this is to append a unique (per-session 
at least) id to the querystring of each page, which means that the page will be 
requested from the server rather than the cache. I believe this works in Opera 
as well as other browsers.

There is more to cache-control and expiring pages than meets the eye, do a 
search on it or read the rfc. Ultimately it is down to how user agents 
interpret those commands, and there is no substitute for testing...

Mark

-Original Message-
From: William Stokes [mailto:[EMAIL PROTECTED] 
Sent: 26 April 2005 09:55
To: php-general@lists.php.net
Subject: [PHP] Re: Cache control


Talkin' to myself...

does this solve the issue?

header (Cache-Control: no-cache);



-Will

William Stokes [EMAIL PROTECTED] kirjoitti 
viestissä:[EMAIL PROTECTED]
 Hello,
 I have an web application that checks users rights to specific parts 
 of
 the apllication at the beginning of each page. However I noticed, with the 
 help of Jason Barnett, that opera caches pages locally and the users 
 rights check fails. The application works fine with Firefox and IE. So I 
 think I need to prevent the pages from beeing cached. How this can be 
 done? I'm totally inexperinced with this stuff.

 The authentication is a 2 part task. First the username and password 
 are
 checked and the user is given or denied access. This works ok with every 
 browser. But once inside the user access rights check to differt parts of 
 the application fails because of the Opera cache.

 Thanks
 -Will

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Gamma Global : Suppliers of HPCompaq, IBM, Acer, EPI, APC, Cyclades, D-Link, 
Cisco, Sun Microsystems, 3Com

GAMMA GLOBAL (UK) LTD IS A RECOGNISED 'INVESTOR IN PEOPLE' AND AN 'ISO 9001 
2000' REGISTERED COMPANY

**

CONFIDENTIALITY NOTICE:

This Email is confidential and may also be privileged. If you are not the
intended recipient, please notify the sender IMMEDIATELY; you should not
copy the email or use it for any purpose or disclose its contents to any
other person.

GENERAL STATEMENT:

Any statements made, or intentions expressed in this communication may not
necessarily reflect the view of Gamma Global (UK) Ltd. Be advised that no 
content
herein may be held binding upon Gamma Global (UK) Ltd or any associated company
unless confirmed by the issuance of a formal contractual document or
Purchase Order,  subject to our Terms and Conditions available from 
http://www.gammaglobal.com

EOE

**
**


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Cache control

2005-04-26 Thread The Disguised Jedi
 I think I need to prevent the pages from beeing cached. How this can  be 
done? I'm totally inexperinced with this stuff.
 Look at the examples and user notes in the header statement in the manual.
 http://php.net/function.header

That should help you, they have a whole section on how to stop caching.

-- 
The Disguised Jedi
[EMAIL PROTECTED]

Now you have my $0.02. Or .01 Pounds, .014 Euros, or $0.025 CAN. I'm 
world-wide BABY!
PHP rocks!
Knowledge is Power. Power Corrupts. Go to school, become evil

Disclaimer: Any disclaimer attached to this message may be ignored. However, 
I must say that the ENTIRE contents of this message are subject to other's 
criticism, corrections, and speculations.

This message is Certified Virus Free