问题
How can i use single session for both clojure and clojurescript. For my login web application Server side i am using clojure and client side clojurescript. And i need a session which is accessible from both client and server. Is that possible?
回答1:
The example sente project has a session which is accessible from both client and server. You will probably need to spend some time with it and mould it to your needs. But the example itself shows logging in and then a :uid
inside :session
, which is accessible from both the server and the client.
来源:https://stackoverflow.com/questions/36173714/how-can-i-use-a-session-for-both-clojure-script