Signed Cookies in PHP
I saw the Signed Cookies in Django Middleware and looked around to see if something like that had been done in PHP. I didn’t see anything immediately – perhaps some of the frameworks have it buried in their docs somewhere?
So I put together a small class that handles cookie signing, and verification, for PHP.
It’s nothing very serious, and could probably be vastly improved – but I like going the route of “absolutely minimal”, so that you could quickly grab the concepts and put them to practice in whatever code-base you’re working on.
I’ll post the code very shortly, I promise. Can’t get to it at the moment.


Sorry, Comments are Closed.