Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Safari: No-caching, Expires

Status
Not open for further replies.

adelante

Programmer
May 26, 2005
82
DK
I have made a login-area, that should work like hotmail. Once the user has hit the "signout" button, he is signedout. However I had/have this problem that if you click on the "Back" button, then you can see the content from the login-area (it would be like people seeing your inbox in hotmail.)

I have spend two days on these few lines and now they finally work in IE and firefox. But when I try in safari on a mac it doesn't work. :( Any ideas? I think safari caches too much or something.

print "Expires: Mon, 20 Dec 1998 01:00:00 GMT\n";
print "Cache-Control: no-cache, no-store, must-revalidate, max-age=0\n";
print "Cache-Control: post-check=0, pre-check=0\n";
print "Pragma: no-cache\n";
print "Content-type: text/html\n\n";
print"<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0;URL=index.cgi\">";

I have copy/paste'ed that from my PERL script.

Any ideas will help.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top