Expire a page using CGI.pm doesn't work for IE 5

2002-02-22 Thread Lee, John
Hi all, I have been using CGI.pm to code my PERL cgi scripts and I want to set a time for the webpage to expire. I coded the expire parameter as below but it never worked in Microsoft Internet Explorer! print header(-expires=>+5s); I found out that the expire parameter works for me in Netscape

[Q]Setting global variables.

2002-02-22 Thread Bhanu Prakash
Perl Gurus, How can I set global variables in perl.? I'm trying to do something like.. if(param()) { my $myvar=param("myvar"); if(param("myvar2"){ use $myvar here.. Has some script to show a form.. } else { On submitting the form, user enters here.. someother use of $myvar.. Here, my script i

Printing a file from the print statement

2002-02-22 Thread Sir Douglas Cook
How can I make the "Open File and print content statements" work from my sub make_body when called from sub create_file? The output I get is open message.txt; while () { = "." } print The contents of message.txt i

Problem with caching/expiry

2002-02-22 Thread Stephen.Hurley
Hi all, I'm trying to stop browsers from caching a page that I'm using CGI.pm to output. According to what I've read about CGI.pm, the way I do this is with: print header(-expires=>'-1d'); which sends a header that says the page expired yesterday (and needs to be reloaded). However, the pag

Problem with caching/expiry

2002-02-22 Thread Stephen.Hurley
Update to the info below, when I hit "view source" I don't see the http headers in IE. However, they are being generated - so they're either being stripped out by my servee (unlikely) or IE doesn't show them (hmmm). Either way, IE is still caching pages I set to expire yesterday... -Original