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

r they Browser cookies/cache??

Status
Not open for further replies.

GeeWond3r

IS-IT--Management
Sep 5, 2003
65
US
Whenever a user enters in data in a web form, it seems it's being cached. My webpages do not require cookies. Can someone tell me what/how these cache work? I've a field (let's say a credit card #) that I do not want cached or displayed the next time (when a user enters the 1st character and data are populated). So how would I script -or- enable it so all the past data does not populate?

- Geez
 
If you dont want the past data to get populated....include these lines on the top:

<% Response.CacheControl = "no-cache" %>
<% Response.AddHeader "Pragma", "no-cache" %>
<% Response.Expires = -1 %>



knight1.gif
-VJ
 
Ok, I added the 3 lines to the top of my asp page (that contains the form) and it still populates old data. I added new form fields n still no go! hmm..
 
It could be a client side issue, have they turned off AUTOCOMPLETE ?
 
But the thing is... we can't rely on the client to control and enable/disable the configuration. Besides, I've gotta script it so it'll surpasses the client browsers' DEFAULT settings.

Thought this thing was suppose to be easy?!.

errRRR..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top