Believe it or not, but I’m upgrading from Slim 2. (Still in the process of upgrading an app to v3… Hoping to get to v4 tomorrow.)
Cookies have been a pain point:
- Slim 2 documented how to do it, and it was very straightforward; nice!
- Slim 3 said to use dflydev/dflydev-fig-cookies, but I’ve wasted 2-3 hours on it today, and it’s bad. The documentation is terrible and, even though the project looks active, their remove method has been broken for over 3 years now.
- Slim 4 doesn’t mention anything on the topic.
Is there an official recommended way to do it, from the Slim dev team?
If not… does anyone know how people typically do it? Should I just rely on PHP’s built-in functions? (Still gotta read PSR-7.)
Thanks for the help, it’s appreciated.