noir-clojure / lib-noir

A set of libraries for ring apps, including stateful sessions.
Eclipse Public License 1.0
483 stars 47 forks source link

clojure.lang.Var$Unbound cannot be cast to clojure.lang.Atom #93

Closed zwild closed 10 years ago

zwild commented 10 years ago

Hi, when I try to use (session/put! :name "ttt"), this error will occur.

Raynes commented 10 years ago

The session is only bound within the scope of the function handling the request rmatched. If the function doing this isn't being called somewhere up the chain by a request handling function, the session won't be bound.

zwild commented 10 years ago

Thanks a lot. Got it.