Niklas Närhinen

Web development with passion

Ring session middleware and compojure

I wanted to add session support to my web-application written in Clojure+Ring+Compojure.

Searching from google I found information how to use sessions using ring.middleware.session. However the examples would not work as is when your are using Compojure.

The key to success was to actually find out how compojure routes work

The complete code is presented below - main points:

Comments for this blog entry