From 7ab11a80698b7369a14b3b184c436c7b512a7aa6 Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Tue, 18 Apr 2017 21:38:09 +0200 Subject: [PATCH] Increase the session timeout #21 --- src/clj/yenu/middleware.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/clj/yenu/middleware.clj b/src/clj/yenu/middleware.clj index 6f9d59e..b9c6e01 100644 --- a/src/clj/yenu/middleware.clj +++ b/src/clj/yenu/middleware.clj @@ -92,7 +92,8 @@ (-> ((:middleware defaults) handler) wrap-webjars wrap-flash - (wrap-session {:cookie-attrs {:http-only true}}) + (wrap-session {:timeout (* 60 60 24 7) + :cookie-attrs {:http-only true}}) wrap-cookies (wrap-defaults (-> site-defaults