How to handle browser refresh and DB insert

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default How to handle browser refresh and DB insert

    Any ideas on how to accomplish the following:

    I have a search page that inserts user's search terms into a database so I
    can return "The Top Ten Searched for Companies Are". I want to prevent a
    company from simply hitting the refresh button a hundred times and moving
    themselves to the top of the list. I'm tracking IP addresses so I can
    manually check but I'd like to programmaticaly minimize the ability to do
    this. I thought of setting an initial value when the results page is hit for
    the first time and then incrementing that value each time the page is
    refreshed but I could not get it to work. Any ideas.


    bforce Guest

  2. Similar Questions and Discussions

    1. Browser refresh
      hi, I m a newbie. i tried searching on forum but couldn find answer. I have a login view as my first view.. and then to themain view.. however...
    2. Prevent data insert on page refresh
      After a form is submited and inserted to the database, if the user hits the refresh button the data is again inserted to the database (there is a...
    3. CFGrid: browser Refresh after updates
      As edits are made to my CFGrid, I find that you must select "refresh" from browser menu before updates will become evident. So my question is upon...
    4. How To Force a Browser To Refresh an swf Movie.
      Maybe I have gone about this all wrong, but I have embedded swf's in my site so that when someone clicks an item in the nav menu, the new section...
    5. Handle user auto-repeating refresh in browser
      Why would your users keep their finger on F5??? Thats like saying how do I disable Ctrl-Alt-Del so users won't accidently restart their system......
  3. #2

    Default Re: How to handle browser refresh and DB insert

    would you use cookies?
    jorgepino Guest

  4. #3

    Default Re: How to handle browser refresh and DB insert

    I think I'm actually going to do all my DB insert operations on a transfer
    page that has a META REFRESH tag taking the user to the final results page.
    A user could still back into the transfer page and add bogus records but I
    doubt our target audience would go through the hassle or even know to do
    that.




    "bforce" <bforce@poultryegg.org> wrote in message
    news:d7l50c$11j$1@forums.macromedia.com...
    > Any ideas on how to accomplish the following:
    >
    > I have a search page that inserts user's search terms into a database so I
    > can return "The Top Ten Searched for Companies Are". I want to prevent a
    > company from simply hitting the refresh button a hundred times and moving
    > themselves to the top of the list. I'm tracking IP addresses so I can
    > manually check but I'd like to programmaticaly minimize the ability to do
    > this. I thought of setting an initial value when the results page is hit
    > for the first time and then incrementing that value each time the page is
    > refreshed but I could not get it to work. Any ideas.
    >

    bforce Guest

  5. #4

    Default Re: How to handle browser refresh and DB insert

    Don't use meta-refresh use cflocation.
    Stressed_Simon Guest

  6. #5

    Default Re: How to handle browser refresh and DB insert

    Thanks for the clue. Works like a charm and when the user tries to back into
    the transfer page they get the original search page instead.



    "Stressed_Simon" <webforumsuser@macromedia.com> wrote in message
    news:d7mjej$si3$1@forums.macromedia.com...
    > Don't use meta-refresh use cflocation.

    bforce Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139