homepage Welcome to WebmasterWorld Guest from 54.197.215.146
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Why do I NOT get the "Page has expired" warning?
Clicking Back button to a page that was submitted from a POST form
groovyhippo




msg:1303235
 11:21 am on Mar 20, 2005 (gmt 0)

Normally, when you submit a form to a page using the POST method, and you subsequently use the browser's back button to navigate back to that page, it comes up with the standard warning "Page has Expired... To resubmit the information click the refresh button". I understand why that happens - the page resulting from a POST submission becomes immediately stale.

BUT... on one of my sites this isn't happening and I can't understand why. I can click Back and the page displays just fine. I don't want that to happen as I want to generate a unique transaction ID each time that page is displayed.

The page is submitted via POST to PHP_SELF but I've tried submitting it to a different page and that makes no difference.

Has anyone come across this problem before? I've been scratching my head for hours.

 

gardenguy




msg:1303236
 12:10 pm on Mar 20, 2005 (gmt 0)

Is the following in the code where you don't get the warning:
session_cache_limiter("public");
This is a common cure people who don't want the message use.

groovyhippo




msg:1303237
 12:19 pm on Mar 20, 2005 (gmt 0)

No.

Having investigated a bit further I think it may be something to do with the fact I'm using mod_rewrite on that site. I've just looked at another site that uses mod_rewrite and their form results pages are cached too. Need to do a bit more investigation.

groovyhippo




msg:1303238
 12:23 pm on Mar 20, 2005 (gmt 0)

Actually, the same behaviour can be viewed on this webmasterworld site, which I'm presuming from the urls is also using mod_rewrite.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved