Double Posting

Results 1 to 2 of 2

Thread: Double Posting

  1. #1
    Barkus Guest

    Default Double Posting

    Does anyone have any advice to avoid this mess?

  2. #2
    Join Date
    Dec 1969

    Default RE: Double Posting

    I had a problem once where netscape would double post and one of the solutions I came up with was to create a session variable that stored the name of the current page and then I did a check on that variable when the page reloaded. So if the session variable matched the current page it wouldn&#039t execute anything.<BR><BR>Example:<BR>--------<BR><BR>&#039 Check to see if the last page is the same as the current page<BR>if session("lastpage") &#060;&#062; Request.ServerVariables("SCRIPT_NAME") then<BR> &#039Execute any updates<BR>else<BR> &#039Do nothing<BR>end if<BR><BR>&#039 Set the current page = session("lastpage") so if it reloads <BR>&#039itself (re-post), it will know not to run the update again.<BR>session("lastpage") = Request.ServerVariables("SCRIPT_NAME")<BR><BR>I&#0 39m not sure if this is the answer that you are looking for but I hope it helps.<BR><BR>

Posting Permissions

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