On 14 May 2011 20:49, Shree Mulay <shreemu...@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

-- 
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

Reply via email to