Cookie value gets submitted during POST submit of HTML FORM
-
True
-
False
-
May be
-
Never
Browsers automatically include cookies for the domain in HTTP requests, including POST form submissions. This is how session state is maintained - the session ID cookie travels with the form POST to the server, allowing the server to associate the submission with the authenticated session.
Browsers automatically attach a site's cookies to every request sent to that site's domain, regardless of HTTP method — so cookie values are included whether the form is submitted via GET or POST. This is exactly why session cookies work seamlessly across normal form submissions, and also why CSRF protections are needed for POST requests, since the browser will send the cookie even for a forged cross-site submission.