Published by hansott 10 months ago
Published by hansott over 4 years ago
Published by hansott over 4 years ago
Published by hansott over 5 years ago
See https://github.com/hansott/psr7-cookies/issues/5#issuecomment-483602120
Adding a cookie to a PSR-7 message is the only thing that this library should do, the other functionality is removed.
How to upgrade?
RequestCookies
-> $request->getCookieParams()
gives you all request cookies in the format you're used to.Signer
-> I'm not sure what I should recommend at this point, I'm not an expert at security. That's part of the reason why I'm dropping the sign cookie functionality.ResponseCookies
-> Just use SetCookie->addToResponse
Thanks for understanding.
Hans
Published by hansott over 5 years ago
Published by hansott over 6 years ago
Although it's not an API change, users should be prepared to see exceptions for signed cookies.
Signed cookies are now signed using the name AND value (previously only the value). This makes sure that a signed cookie cannot be renamed without changing the signature.
Published by hansott over 8 years ago
RequestCookies
& ResponseCookies
now directly implement Iterator
(before through CookieCollection
interface), since only 2 downloads, no major/minor change. (c44b4ce)