title: Compojure Lib-Noir session/put! unbound var error
body: <p>I am converting an older web app I made a few months ago from Noir to Compojure and I am using the Lib-Noir add-on. It appears that session/put! is either changed in some way I don't understand or it is bugging out for whatever reason. </p>
  
  <p>Here, I can see that <a href="https://www.4clojure.com/" rel="nofollow noreferrer">4Clojure</a> appears to be using it with no problems: <a href="https://github.com/4clojure/4clojure/blob/develop/src/foreclojure/login.clj" rel="nofollow noreferrer">See Line 51</a>. I also found <a href="https://stackoverflow.com/questions/14806063/howto-use-lib-noir-stateful-sessions-in-compojure">this thread</a> that covers the same question but there doesn't appear to be a satisfactory response. </p>
  
  <p>This should work <a href="http://www.webnoir.org/tutorials/sessions/" rel="nofollow noreferrer">(Noir)</a>: </p>
  
  <pre><code>user=&gt; (require '[noir.session :as sesh])
  nil
  user=&gt; (sesh/put! :user "me")
  ClassCastException clojure.lang.Var$Unbound cannot be cast to clojure.lang.Atom  
  clojure.core/swap! (core.clj:2162)
  </code></pre>
  
  <p>The above is the same error that I am looking at on the webpage. Basically I'm stuck. </p>
  
  <p><strong>Edit to add</strong> </p>
  
  <p>Appears I created a bit of confusion with the command line part: (put!) is not working in the program either. There's not much to write about it, except that it is (shesh/put! :uname user) and it appears that :uname isn't working. I'm confused as to why it would have worked before and not now when I am using the same tools as before. This is a rewrite of a site I build about 6 months ago. I'm just moving it to Compojure from Noir. The lib-noir session is, as far as I know, essentially the same as what was in Noir. </p>
  
  <p><strong>ANOTHER EDIT</strong></p>
  
  <p>I put the code up on github. This isn't the completed project, but hopefully someone can decipher what is going on here: <a href="https://github.com/dt1/SoloResume" rel="nofollow noreferrer">https://github.com/dt1/SoloResume</a></p>