framework: Accessing unencrypted cookies is not possible
I’ve played around with this quite a bit, and was not able to find a solution, so…
I’m trying to integrate cookies from another software. I can’t even read them from within my service providers, because the Illuminate\Cookie\Guard empties all cookies that cannot be decrypted.
Because of the way that middleware is enabled (hardcoded in the application class), there’s currently no way at all (or so it seems) to either write or read unencrypted cookies.
Any ideas on how this could be achieved nontheless? I’d suggest registering some of these middlewares in service providers instead. (Seeing that they aren’t has me worried there is a good reason for that, though.)
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 19 (9 by maintainers)
Try replacing the Application class with a subclassin start.php and replacing getStackedClient() with a function containing your custom …\Cookie\Guard class. I haven’t tried but I think it should work.