Why is username not saved in noir session in Clojure project?
问题 This is how I save it during login: (defn set-loggedin [username] (sesh/put! :username username)) (defn login-handler [username password] (let [user (datab/login username password)] (if (empty? user) (view/login-form "Wrong password.") (do (set-loggedin username) (resp/redirect "/movies"))))) (defroutes app-routes ... (POST "/" [username password] (login-handler username password)) (POST "/movie/save" [movieID name] (film-new movieID name)) ...) (def app (noir-middleware/app-handler [app