how can i expire page views so that a user cannot come back to a particular page such as a form after being processed into a database?
Thanks! Newbi here...
Printable View
how can i expire page views so that a user cannot come back to a particular page such as a form after being processed into a database?
Thanks! Newbi here...
jsut send them to somewhere alse after they complete the form.
Thats not propper. Because the user can just come back and re-submit the form... the page has to expire.. thats the whole purpose behind expiring page views.. just sending the user some place wont do it.
when you figure out how to expire a page you let me know..... hence I have never seen it.
and it is proper to send them to a thank you page or something. and what would the purpose be to go back and submit the form again?
just do a beensubmitted.. or send a cookie.. somthing such as this
<?
if ($BeenSubmitted) {
print ("You have arleady submitted this page... please bug off");
}
else {
//put your code here
?>
<INPUT TYPE=submit NAME="SUBMIT"
VALUE="Submit!"
<?
}
?>
<INPUT TYPE=HIDDEN NAME=BeenSubmitted VALUE=TRUE>
Somthing along those lines might work for what you need.
If you are refering to the 'This page has expired' message that Internet Explorer displays, it is due to your browser security settings, being set to NOT automatically resend form data to the server.Quote:
Originally posted by nkad
Thats not propper. Because the user can just come back and re-submit the form... the page has to expire.. thats the whole purpose behind expiring page views.. just sending the user some place wont do it.
Basically, If you fill in a form, and click submit and a page is displayed, if you move away from that page, and click back, Internet Explorer, will not resend the form data to the server, and instead displays that message. (If you press F5, or refresh) it resends the data, and displays the page.
it also has to do with the session_cache_limit in php too.