@ James, yes.
(def app
(-> #'main-routes
(wrap-reload '(SocialNetworkCore.core)) ;;remove wrap-reload
from production code
(wrap-params) ;; wraps params (inputs from
forms) - makes 'em available
;(wrap-flash) ;;
(wrap-session) ;; wraps session
(wrap-request-logging) ;; gives me request logging
(wrap-bounce-favicon) ;; skirts favicon request logging
(wrap-exception-logging) ;; logs exceptions
(wrap-stacktrace))) ;; detailed stacktrace of errors
Anything look wrong there???
On May 12, 7:02 am, James Reeves <[email protected]> wrote:
> On 12 May 2011 04:49, Shree Mulay <[email protected]> wrote:
>
> > But for WHATEVER reason, the sessions are NOT getting stored?
>
> Have you added the session middleware? e.g.
>
> (def app
> (-> main-routes
> wrap-params
> wrap-session))
>
> Or more succinctly:
>
> (def app
> (handler/site main-routes))
>
> - James
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en