我如何同时为clojure / script使用会话 [英] How can i use a session for both clojure/script

查看:72
本文介绍了我如何同时为clojure / script使用会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何将单个会话用于clojure和clojurescript。
对于我的登录Web应用程序,服务器端我正在使用clojure和客户端clojurescript。
而且我需要一个可以从客户端和服务器访问的会话。
可能吗?

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?

推荐答案

示例服务项目具有一个可以从客户端和服务器访问的会话。您可能需要花一些时间并根据自己的需要进行调整。但是示例本身显示登录后,然后在:session 内的:uid 可以从服务器和服务器访问客户。

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.

这篇关于我如何同时为clojure / script使用会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆