Ninjakreborn Posted September 26, 2006 Share Posted September 26, 2006 [b]Website Information[/b]URL: [url=http://www.thecampussource.com]http://www.thecampussource.com[/url]Problem Pages- All[b]Problem Information[/b] 9-24-06 I recieved an email from my client, they had some changes they wanted to be made within there website (www.thecampussource.com). I looked over there notes, and as I always do with clients, began knocking stuff off the list one after another. Then I ran into 2 statements, that didn't strike me as odd because of the situation, and I had also noticed this. As a Web Developer I know what causes this, but I didn't think there was a fix for it. These are the 2 seperate things they said to me, and the first one, I saw happen for myself.Quote 1- [quote]Sometimes when I hit back it says page has expired[/quote]Quote 2- [quote]When using Mozilla, when you switch schools then browse and hit the back button, a popup comes up that says, "The page you are trying to view contains POSTDATA that has expired from cache. If you resent the data, any action the form carried out (such as a search or online purchase) will be repeated. To resend the data, click OK. Otherwise, click Cancel."[/quote][b]Theory of problem[/b]In order to keep the selected schools working properly, I have to make the form send it to index.php, and sometimes it comes from links, so I set up a session instead to lessen the amount of difficulties, I was also recieving this problem when attempting get and post. But I don't know of a fix for this, or totally why it's happening, now in terms that I can explain. Quote Link to comment https://forums.phpfreaks.com/topic/22100-overall-web-page-related-problems/ Share on other sites More sharing options...
trq Posted September 26, 2006 Share Posted September 26, 2006 This is expected http behaviour. The erros are pretty self explanitory. Quote Link to comment https://forums.phpfreaks.com/topic/22100-overall-web-page-related-problems/#findComment-98904 Share on other sites More sharing options...
Ninjakreborn Posted September 26, 2006 Author Share Posted September 26, 2006 I know "why" they are happening, I am wondering if there is a way to fix this or not. Quote Link to comment https://forums.phpfreaks.com/topic/22100-overall-web-page-related-problems/#findComment-98925 Share on other sites More sharing options...
alpine Posted September 26, 2006 Share Posted September 26, 2006 To prevent post warning on back-button, use method get in the form instead. But ofcourse, the warning is present for a purpose as you know - to prevent repeating (re-submit) something without users attention.As to the expired notice, do you have an expires meta tag in the header ? Quote Link to comment https://forums.phpfreaks.com/topic/22100-overall-web-page-related-problems/#findComment-98941 Share on other sites More sharing options...
trq Posted September 26, 2006 Share Posted September 26, 2006 There are lots of solutions / ways around this problem. Try playing with the cache headers. also make sure that once a form has been submitted and processed, redirect (this uses GET) the user to a success page. This clears any POST data. Quote Link to comment https://forums.phpfreaks.com/topic/22100-overall-web-page-related-problems/#findComment-98943 Share on other sites More sharing options...
Ninjakreborn Posted September 26, 2006 Author Share Posted September 26, 2006 ok, thanks I will play with those. Quote Link to comment https://forums.phpfreaks.com/topic/22100-overall-web-page-related-problems/#findComment-98949 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.