The web in a nutshell.
Handling cookies is a minefield
41–50 of 270 posts
Re: Handling cookies is a minefield
#42IT IS a mess, but I never saw json inside a cookie. For json I use local storage or indexeddb.
Re: Handling cookies is a minefield
#43> minefield Cookies are a bit of a mess, but if you're going to use them, you can follow the standard and all will be well. Not so much a minefield, but a hammer; you just need to take some care not to hit yourself on the thumb. I guess the confusion here is that the browser is taking on the role of the server in setting the cookie value. In doing so it should follow the same rules any server should in setting a cook…
Re: Handling cookies is a minefield
#44Earlier quoted context omitted.
Quotes don't delimit the value.
Per the section 4.1.1 rules quoted in the article, cookie values can be optionally quoted: > cookie-value = cookie-octet / ( DQUOTE cookie-octet DQUOTE )
> Per the grammar above, the cookie-value MAY be wrapped in DQUOTE characters. Note that in this case, the initial and trailing DQUOTE characters are not stripped. They are part of the cookie-value, and will be included in Cookie header fields sent to the server.
Re: Handling cookies is a minefield
#45Earlier quoted context omitted.
De facto standardization by snapping up good names early!
Not really. A lot of essential third party Rust crates and projects have "weird" names, eg. "nom", "tokio", etc. You can see that from the list of most downloaded crates [1]. This one just happens to have been owned and maintained by core Rust folks and used in a lot of larger libraries. This is more the exception than the rule. It's a given that you should do due diligence on crates and not just use the first name t…
Re: Handling cookies is a minefield
#46Earlier quoted context omitted.
[flagged]
I was answering your question about when they went into browsers with a link, and summarizing it in a parenthetical. So much for “replies explaining that welcome”, I guess.
I'd guess you just screwed up your copy paste and didn't notice.
Re: Handling cookies is a minefield
#47Earlier quoted context omitted.
Needs a better name than NewCookie though. Suggestions include SuperCookie, UltraCookie or BetterCookie Or to be slightly more serious avoid calling it a cookie and call it something else. Too much baggage surrounding the word cookie.
His Majesty's English might suggest "biscuit".
Re: Handling cookies is a minefield
#48- Implement redirects from the old login screen to the new one - Keep sessions in sync - Make sure all internal and external users know how to clear cookies - Remind everyone to update bookmarks on all devices - Troubleshoot edge cases
Re: Handling cookies is a minefield
#49Re: Handling cookies is a minefield
#50IT IS a mess, but I never saw json inside a cookie. For json I use local storage or indexeddb.