Is using superglobals directly good or bad in PHP?
I do like to wrap $_SESSION, $_POST, $_GET, and $_COOKIE into OOP structures. I use this method to centralize code that handles sanitation and validation, all of the necessary isset () checks, nonces, setcookie parameters, etc. It also allows client code to be more readable (and gives me the illusion that it’s more maintainable). It … Read more