When setting cookies, PHP url-encodes the cookie value (at least when not using setrawcookie
) and it url-decodes the cookie value before making it available to the application in $_COOKIE
.
Is this an accepted standard? If I set a raw cookie value of a%3Db
, would I get back a=b
in most web programming languages (through their respective cookie-reading mechanisms)?