[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Using Basic Zope Objects
nobody@nowhere.com
nobody@nowhere.com
Sat, 21 Sep 2002 17:37:27 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/BasicObject.stx#3-228
---------------
You can use sessions in Page Templates and DTML Documents,
too. For example, here's a template snippet that displays the
users favorite color (as stored in a session)::
<p tal:content="request/SESSION/favorite_color">Blue</p>
% Anonymous User - Sep. 21, 2002 5:37 pm:
You can use sessions wherever you have something executable with access to the REQUEST object, that is
everything called through the web, even code of products you write yourself.
Rather than 1000 examples give me 1 rule.