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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clearing cache after variables have been passed.

Status
Not open for further replies.

vcherubini

Programmer
May 29, 2000
527
US
Hello:

I am working on a forum and I am having an annoying problem.

Whenever you go to a page, the PHP scripts pass session management variables around along. I also have back and foward form buttons on my page that use the POST method to go back and foward.

When you use the browser buttons to go back and foward, on most pages, you get a Page Has Expired.

I have the following code in my common_header() function, which is called on every page:

[tt]
header ("Cache-Control: no-cache, must-revalidate");
[/tt]

Is that how you do it? I need it so that it clears the cache so that when you go back with the browser buttons, it doesn't try to send variables so that I don't get a Page Has Expired.

I have seen this on other forums, so I know it works.

Any help is always appreciated.

Thanks,

-Vic vic cherubini
vikter@epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====
 
with post u always get the expired message, that is why u should use the get method.
MiQ
mick@vandermostvanspijk.nl
currently installed: html, JavaScript, dhtml, css, php, mysql, postgresql, xml, linux, apache
about to install: java, c++
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top