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

Session not surviving a redirect #86

Closed markgunnels closed 10 years ago

markgunnels commented 10 years ago

I am implementing oauth with clj-oauth and lib-noir. Values I place in the session are not available after I redirect to Twitter.

Is this a known issue? What details can I provide if it isn't? (Always allowing for the possibility that I'm doing something very, very stupid.)

yogthos commented 10 years ago

The session is just an atom, lib-noir session middleware associates it with the request under [:session :noir] if that key is not present in the request then the session will be lost.

The order of middleware matters, if you have other middleware that relies on it then make sure that the noir session middleware wraps it.

yogthos commented 10 years ago

Closing as no further info is provided.