On 12 May 2011 20:37, Shree Mulay <shreemu...@gmail.com> wrote: > ;(wrap-reload '(SocialNetworkCore.core)) ;;remove wrap-reload > > it started behaving. Is the "wrap-reload" functionality not compatible > with Ring Sessions??? Have I implemented it the wrong way?
I'm not sure. There exist better alternatives to the `wrap-reload` middleware anyway, such as the lein-ring plugin. > Only thing is, when I goto > > http://127.0.0.1:3000/set > I still get: > You set x = > > Though at: > > http://127.0.0.1:3000/get > I get: > x = Shree Yes, because "x" is a parameter that is never set. In my original example: (GET "/set" [x :as {session :session}] {:session (assoc session :x x) :body (str "You set x = " x)}) So you'd set it by going to "http://localhost:3000/set?x=foo". You then hard-coded the :x session key to "Shree", but you didn't change the value of the "x" variable: (GET "/set" [x :as {session :session}] {:session (assoc session :x "Shree") :body (str "You set x = " x)}) - James -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en