Rob, Ring stores session data in an atom. Reloading re-defines the atom to be empty. Sandbar uses Ring's session store. I have made a small change to Ring in my branch which fixes this problem. See http://github.com/brentonashworth/ring/commit/ebcdb3ec8adfc5c82d5fd6031f444a105701a8e0. I don't see any problems with this change and will submit it as a patch on the Ring mailing list and see what the people over there think it. Maybe there is another way around this problem.
So, the work-around would be to fork Ring. Make this change in your branch and then do lein jar && lein install. Then in your project remember to do lein clean && lein deps. This will get what you want working in development and is still compatible when you go to production. Brenton On Sep 8, 5:32 pm, Rob McBride <robmcbr...@gmail.com> wrote: > Hi, > > It seems that when using ring's wrap-reload to automatically load changes, > sandbar session seems to not work. Has anyone else noticed this? Is this a > possible bug? > > I've added ring's wrap-reload to session_demo.clj and the demo breaks. > > Any work arounds? I would love to be able to use wrap-reload, it is a > definite time saver. > > Thanks, > -Rob > > -- > Please avoid sending me Word or PowerPoint attachments. > Seehttp://www.gnu.org/philosophy/no-word-attachments.html -- 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