Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 3
    I also check if a request is already running, but I use a boolean, as it's lighter.
    – Zesty
    Commented Jul 29, 2015 at 5:02
  • 1
    ` var $request; if ($request != null)` Why? Here the code is creating an empty variable and then checking if it's not null without any strict check. What is the educational meaning of this useless check that it's always false? Moreover, this is a late answer that just tells to use abort() (already answered above) but without explaining it in any way. The phrase "It's always best practice to do something like this" is just a positive buzzword that entices inexperienced to vote up. Voted down for that until clarifications or improvements. Commented Dec 10, 2021 at 8:44