Sessions for Compojure(intensivesystems.net)
intensivesystems.net
Sessions for Compojure
http://intensivesystems.net/tutorials/web_sessions.html
2 comments
Really interesting, but where / how is the user's session data stored? client side or server side?
A small amount of additional detail on the Clojure Google Group: http://groups.google.com/group/clojure/browse_thread/thread/...
The author mentions he uses the continuation monad.
A small amount of additional detail on the Clojure Google Group: http://groups.google.com/group/clojure/browse_thread/thread/...
The author mentions he uses the continuation monad.
Really interesting, but where / how is the user's session data stored? client side or server side?
From the article:
There are two ways to do this. Firstly, each time a web page is requested, embed the entire context of the session into it so that the context is returned whenever a request is generated from that page. Alternatively, the application server has to maintain a list of all the contexts of all active sessions and associate each context with a session identifier.
[...]
I chose to implement a web session library based on the second concept.
That would make it server side.
From the article:
There are two ways to do this. Firstly, each time a web page is requested, embed the entire context of the session into it so that the context is returned whenever a request is generated from that page. Alternatively, the application server has to maintain a list of all the contexts of all active sessions and associate each context with a session identifier.
[...]
I chose to implement a web session library based on the second concept.
That would make it server side.
Jim Duey