Dear all,<br>
<br>
How can I use zope session id(client_id) in .pt template? I'm not understanding zope's session id management very well.<br>
Sometime, I can get session id using code like this<br>
<br>
&lt;span tal:content=&quot;python:request.cookies.items()[0][1]&quot;/&gt;<br>
<br>
But strange think is sometimes request object has empty cookie. above code will generate errors.<br>
<br>
I know I can get session id using a function like below:<br>
...<br>
&nbsp;&nbsp;&nbsp; def SessionData(self):<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return ISession(self.request).client_id<br>
...<br>
<br>
but is it possible to do this ONLY using a .pt file?<br>
<br>
Thanks in advance,<br>
Simon &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <br>