[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

php super globals

So i $_REQUESTS holds all get post and cookies, why would you ever need to use $_GET, $_POST, or $_COOKIE.  The only reason i can think of is that if their is a $_POST['name'], and $_COOKIE['name']  or maybe im just confused.
0
cone13cone
Asked:
cone13cone
1 Solution
 
asafadisCommented:
Well, that alone is a good reason.

From a security point of view, I wouldn't like users to mimic a form-submission by using URL parameters ($_GET).  In other words, when checking a username/password, for example, I would like to make sure that they are coming from a form (POST), and not being "hard-coded" into the URL (GET).
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now