Cache problem

T

tshad

I have a page with a Captch character on it for security.

But if the user puts in the incorrect number, the page redisplays and
changes the number but the display stays the same on a users page that has
"Never" set for page reloads.

I tried adding in the Head section:

<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">

But it still doesn't reload.

Is there anything else I can do to force it?

Thanks,

Tom
 
K

Kevin Spencer

Add a querystring to the URL for the image, and set it to a random number
with each PostBack. The querystring will be ignored, but the browser will
download the image because the URL is not the same.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,602
Members
45,182
Latest member
BettinaPol

Latest Threads

Top