【发布时间】:2015-05-08 13:24:56
【问题描述】:
我正在编写一个 CKAN 扩展,我在其中实现 CKAN 接口 IAuthenticator,我需要在会话中保存一些有关登录用户的附加信息。我发现 CKAN 使用烧杯会话。我怎样才能访问它? In the documentation of CKAN就一句话:Session对象可以通过工具包获取。
你能帮帮我吗?
【问题讨论】:
标签: python session plugins ckan
我正在编写一个 CKAN 扩展,我在其中实现 CKAN 接口 IAuthenticator,我需要在会话中保存一些有关登录用户的附加信息。我发现 CKAN 使用烧杯会话。我怎样才能访问它? In the documentation of CKAN就一句话:Session对象可以通过工具包获取。
你能帮帮我吗?
【问题讨论】:
标签: python session plugins ckan
会话可用作模板的变量,但它不包含太多信息 - 只是有关用户会话 cookie 的一些信息。 cookie 本身只包含一个身份验证令牌。
http://docs.ckan.org/en/latest/theming/variables-and-functions.html#session
您要做什么 - 您需要有关用户的哪些信息以及您要在哪里访问它?
【讨论】: