answer:I’m not sure I understand the question correctly, but if I do: it sounds like whatever program you’re embedding your link in (“email or word document”) is loading the URL more than once. It’s also probably not sending cookies; since you’re getting two session files, that seems to indicate that the session cookie that would let PHP deal with both requests under the same session isn’t being sent by whatever your web client is. I would say you’ll probably have to modify your web app’s logic so that not finding the row in the first table isn’t considered an error. Or maybe you can check the second table as well, before signaling the error, so that one second & subsequent hits to the URL, it just verifies that the row has been moved, and only raises an error if the appropriate row can’t be found in either table.