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!

Preventiong caching post variables

Status
Not open for further replies.

rhowes

IS-IT--Management
Jun 6, 2001
140
ZA
Hi All

Is there a way to prevent post variables being cached? I have a page that submits a user name and password, and if valid opens a new page. I want to prevent a refresh of the logon page from logging the user on again (the fields are empty but the browser remembers the previous values).

Is this possible?

Cheers
Richard
 
Cache Tip

If you frequently update the content of a Web page and would like to keep it from being cached, try adding the the following commands to your page. The expires tag will work on most browsers. The date specified should be past so that the browser will either discard the cached copy or not cache it at all. The no-cache command will prevent Netscape Navigator from caching a page locally.

<META HTTP-EQUIV=&quot;Expires&quot; CONTENT=&quot;Tue, 01 Jan 1980 1:00:00 GMT&quot;>
<META HTTP-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;>

&quot;did you just say Minkey?, yes that's what I said.&quot;

MrGreed
 
Thank you, I'll give that a try.

Cheers
Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top