在Zope中使用Cookies
设置 cookie:
<dtml-call "RESPONSE.setCookie('favorite_language', 'Python', expires='Wed, 19 Feb 2020 14:28:00 GMT')">
引用 cookie:
<dtml-if "REQUEST.has_key('favorite_language')">
<dtml-var favorite_language>
</dtml-if>
阅读(1175) | 评论(0) | 转发(0) |