codeguy/Slim-Extras — pull request #32 by ziadoz (2012-09-10 18:40:55+00:00)
Title: Destroy session when CSRF check fails.

Rails does this I believe. It's more graceful than just halting the application.
I also simplified the code and tweaked exception error messages.