Page 1 of 1

stop browser from cacheing page

Posted: Tue Dec 09, 2003 2:41 pm
by goblinhybrid
hi,
im using basic authentication to protect a .php file containing my passwords. ive seen lots of stuff about this subject and im using

Code: Select all

header("Cache-Control: no-store, no-cache, must-revalidate"); 
header("Cache-Control: post-check=0, pre-check=0", false);
to reload the page. this worked with a simple php page however when i tried it with basic authentication the login box didn't appear. is there anyway to fix this so everything is reloaded?
thanks

Posted: Wed Dec 10, 2003 2:49 pm
by goblinhybrid
someone must know...

Posted: Wed Dec 10, 2003 3:00 pm
by Weirdan
using basic auth there is no way to `logout` person without closing the browser. Take a look: http://httpd.apache.org/docs/howto/auth.html#basicfaq