Results 1 to 7 of 7

Thread: expire page views

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770

    expire page views

    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...

  2. #2
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    jsut send them to somewhere alse after they complete the form.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770
    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.

  4. #4
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    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?

  5. #5
    Member
    Join Date
    Feb 2002
    Location
    CT
    Posts
    62

    expire

    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.
    Sometimes the simplest things are the hardest...

  6. #6
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Scotland, UK
    Posts
    321
    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.
    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.

    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.

  7. #7
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    it also has to do with the session_cache_limit in php too.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width