Re: [Zope] How can I save variables in a session
Hi, I'm traying to save some variables using: <dtml-call "REQUEST.SESSION.set('usuario', username)"> <dtml-call "REQUEST.SESSION.set('tipo_cliente', tipo_cliente)"> But it is not working, when i look at the responce of: <dtml-var REQUEST> I can't find any of the variables there, what am i doing wrong this time? _________________________________________________________________ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.yupimsn.com/
Read the SESSIONS section of The Zope Book. REQUEST['SESSION'] is a dictionary. You can simply index out of it or assign to it. (See the Transience and Session sections of the API). You need to be careful to follow the rules for persistent objects when you update a mutable object stored in the session dictionary. On Tue, 16 Sep 2003, Alexander Alvarado wrote:
Hi, I'm traying to save some variables using:
<dtml-call "REQUEST.SESSION.set('usuario', username)"> <dtml-call "REQUEST.SESSION.set('tipo_cliente', tipo_cliente)">
But it is not working, when i look at the responce of:
<dtml-var REQUEST>
I can't find any of the variables there, what am i doing wrong this time?
_________________________________________________________________ Charla con tus amigos en l�nea mediante MSN Messenger: http://messenger.yupimsn.com/
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Alexander Alvarado -
Dennis Allison