One alternative for some cases might be to just clear the session of
any user generated data, like this:
(defn clear-session-data
"Clear the session of any user generated pairs."
[request]
{:id (:id (:session request))
::expires-at (::expires-at (:session request))})
Of course your expiration keeps running, so you might have a case
where somebody logs in, only to have their session time out 10 seconds
later. I assume the with-session decorator could be tweaked to look
for a :forceRenew flag, but I'm not sure if this is a good approach.
> --
>
> You received this message because you are subscribed to the Google Groups "Compojure" group.
> To post to this group, send email to
comp...@googlegroups.com.
> To unsubscribe from this group, send email to
compojure+...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/compojure?hl=en.
>
>
>