markhuot / craft-pest

https://craft-pest.com
Other
38 stars 11 forks source link

PoC: cookies are not working #59

Closed ostark closed 1 year ago

ostark commented 1 year ago

We need to persist the cookie collection between requests - basically like a browser.

This is needed for sessions as well. No issues with sessions, this is a singleton bound to the application, not to the request/response.

Idea:

How?

We need something stateful that gets the CookeCollection from the response and adds it to the next request. Hello Singleton 🙈

ostark commented 1 year ago

https://github.com/ostark/craft-pest/pull/2 🥳

markhuot commented 1 year ago

This can be replaced by, https://github.com/markhuot/craft-pest/pull/60