Hi everybody,

Am 29.09.2022 um 22:31 schrieb Paul Dragoonis:

Maybe dont couple it to PSR-7 tho.

That means people have to use and adopt 2 standards to use 1. Keep it independent.

We thought about this before, and we realised this wasnt the best idea.

Keep up the energy 💪 looking forward to seeing the progress.

Many thanks,
Paul

I understand from what I have read that the coupling between the middleware interface and the session interface itself comes from the original problem they wanted to solve. At least that is my interpretation. Mind the subject line of this discussion. While a common session interface (or session handler interface, that's quite a debate) is beneficial by itself, it still leaves room for incompatibility in PSR-7 messages in PSR-15 context.

If the guiding question is "How does a HTTP middleware access and query a session", then this gap makes sense to address. It could be as little as "a middleware consuming the session SHOULD retrieve it from a request attribute named 'PSR\Session'. A missing session object SHOULD ..." - treat this as a lorem ipsum.

Just thinking.

--
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to php-fig+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/cc9cfadb-adb7-0aed-a939-9fbbc9c1b4fd%40gmail.com.

Reply via email to