1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Avoid user accessing checkout page twice upon back or refresh.

Discussion in 'General Scripting Chat' started by superaff1984, Apr 29, 2012.

  1. superaff1984

    superaff1984 Power Member

    Jun 16, 2010
    Likes Received:
    West Los Angeles, CA
    What's the best way to avoid a user hitting their back key which will cause them to go back to the checkout page again. The reason I ask for is because we are currently using PHP session. To where we will set the session variable on the index page before the checkout page. Then destroy the session upon successful transaction on the success page. However by doing this we are not able to to install third party landing page testing pixels on our checkout page. Because it cannot access the checkout page due to the if statement checking the PHP session to make sure it's set (which does it get on the index page if it gets visited by a live user)...
    Last edited: Apr 29, 2012
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Jan 27, 2009
    Likes Received:
    Pusillanimous Knitter
    Buenos Aires
    I don't get it. The pixel fires only when the page is loaded and the page can be accessed only by a normal user, so what 's the problem?