This is an example of using laravel 4.1 CookieGuard middleware with silex. This demonstrates the composability of stack middlewares.
All of the outgoing cookies are encrypted. If decryption of incoming cookies fails, the application will ignore them.
Just clone the gist and install the dependencies via composer.