On Saturday, May 14, 2011 4:48:03 PM UTC-4, James Reeves wrote: > > On 14 May 2011 20:49, Shree Mulay <shree...@gmail.com> wrote: > > One final thought I had is I've noticed if I reload a page, the > > session information is lost. How do we get around this? > > You could use defonce to define an atom to back the session storage. e.g. > > (require 'ring.middleware.session.memory) > > (defonce memory (atom {})) > > (def app > (-> main-routes > (wrap-session {:store (memory-store memory)})) > > Perhaps session memory-stores need to use defonce by default. > > - James >
Dear James, et al., Since I updated to ring 0.4.5, I noticed that I didn't have the session disappearing when I reloaded the page. Does this mean that I don't need to back up the session state anymore? Or what has changed? Thanks, shree -- 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