CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Page Expire

 



SirAnvil
Deleted

Feb 17, 2001, 12:08 PM

Post #1 of 7 (604 views)
Page Expire Can't Post

My perl program displays an HTML page w/ a form.
How can I get that page to expire right away. The reason is when someone clicks submit, and they don't like the results they can hit back on their browser and do it again. I want it to say page expired and force them to have to refresh. If they refresh then the info prevoiusly selected will have been saved and ...... okay I'm rambling. I just wanna expire a page right away with no cookies, and without the autorefresh thingy. Anyone?

SirAnvil
www.christiangamers.org


muinatit
Deleted

Feb 17, 2001, 6:00 PM

Post #2 of 7 (601 views)
Re: Page Expire [In reply to] Can't Post

I doubt you could do that with Perl. You'd probably have to come up with some funky HTML code.

Jeffrey "muinatit" Lamoureux
muinatit@hotpop.com


pu_nk
journeyman

Feb 20, 2001, 3:04 AM

Post #3 of 7 (593 views)
Re: Page Expire [In reply to] Can't Post

i have seen Java scripts that may help you out.
I saw one that made the back button on the browser un-clickable. so the visitor is not allowed to go back. I myself find this to be a pain but if it is really what you are looking for maybe try www.javascript.com



SirAnvil
Deleted

Feb 21, 2001, 1:45 PM

Post #4 of 7 (584 views)
Re: Page Expire [In reply to] Can't Post

That looks like the route I'll end up taking only that If I use lynx (text based browser for unix/linux) javascript won't stop the caching. ughn.... I do have other ideas in the works that I will post if they work

SirAnvil
www.christiangamers.org


cir
Novice

Mar 4, 2001, 9:11 AM

Post #5 of 7 (566 views)
Re: Page Expire [In reply to] Can't Post

It's actually quite simple:

print "Expires: Mon, 5 March 2001 15:46:21 GMT";

This tells the browser when it has to delete the page from the cache.

You can also use
print "HTTP_PRAGMA: no-cache";
But this last method is somewhat outdated, and can be complex when messing with proxies.
For more info on the HTTP 1.1 standard goto:
http://Christian Internet Resources
<A target="_blank" HREF=http://cbible.cjb.net

(This post was edited by cir on Mar 4, 2001, 8:13 AM)


BikerHQ
Deleted

Mar 4, 2001, 2:29 PM

Post #6 of 7 (562 views)
Re: Page Expire [In reply to] Can't Post

I always put the following lines at the top of my webpages if I want them to expire immediately and I think it covers all bases!! (although you should note that some ISP's will still cause caching of pages - which in turn causes problems with automatic expiry!!!).....

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<META HTTP-EQUIV="Expires" CONTENT="0">

<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">



MaDD
stranger

Mar 23, 2001, 1:24 AM

Post #7 of 7 (548 views)
Re: Page Expire [In reply to] Can't Post

1.000.000 X tnx...
I've been searching for those tags for ages now.
Finally solved all my caching probs.

Who is this General Failure and what is he doing on my hard-drive ?

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives