Naming cookies HELP
Hello, I'm looking for a guide of rules to name cookies that includes possible errors, such as
reserved names, syntax, etc.
2 Replies
As far as I'm aware, because of the nature of cookies (highly flexible, only sent to your domain), there are no rules around naming. Go wild, so long as the name itself is valid.
The value of a cookie may consist of any printable ASCII character (! through ~, Unicode \u0021 through \u007E) excluding ,and; and whitespace characters. The name of a cookie excludes the same characters, as well as =, since that is the delimiter between the name and value
There other details such as nginx support or even x- cookies. My intention is to gather these rules to avoid problems .