This is my first post here and I'm hoping that someone can help me.
I have a CGI script that creates a dynamic form. When the user fills in the required information it is then sent to the server for processing. Then a new page is returned to the user that is "updated". What I need to do is prevent the user from using his back button and obtaining the last cached page.
Here's the code I used:
print header(-type => 'text/html',
-expires =>'-1d',
-cookie => $Some_information,
-Pragma => 'no-cache',
-Cache_Control =>'no-store,no-cache,must-revalidate,post-
+check=0,pre-check=0');
This works great in Firefox, but it DOESN'T work in IE or Opera. What's my problem?
By the way, before testing, I deleted all of each browser's cache.
If any of you could offer any help I sure would appreciate it.
Thanks in advance...Mike
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.