Skip to content

Instantly share code, notes, and snippets.

@devasiajoseph
Created March 24, 2015 13:22
Show Gist options
  • Save devasiajoseph/500a0b8c6ecdf72ae59c to your computer and use it in GitHub Desktop.
Save devasiajoseph/500a0b8c6ecdf72ae59c to your computer and use it in GitHub Desktop.
(defn production-middleware [handler]
(-> handler
wrap-restful-format
(wrap-idle-session-timeout {:timeout (* 60 30) :timeout-response (redirect "/")})
(wrap-defaults (assoc-in site-defaults [:session :store] (memory-store session/mem)))
(wrap-internal-error :log #(timbre/error %))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment