Hi - to store a value into a session variable use <dtml-call "REQUEST.SESSION.set('<key_name>', <value>)"> - to read, for example <dtml-let value_from_session="REQUEST.SESSION.get('<key_name>', <default>)"> ... <dtml-let> if there is no variable named <key_name>, then the value <default> is returned - to delete <dtml-call "REQUEST.SESSION.delete('<key_name>')"> - to test if there is a variable named <key_name> <dtml-let is_value_on_session="REQUEST.SESSION.has_key('<key_name>')"> ... </dtml-let> Hope this will help Dragos ----- Original Message ----- From: "Alexander Alvarado" <funalito@hotmail.com> To: <zope@zope.org> Sent: Tuesday, September 16, 2003 8:47 PM Subject: [Zope] How can I save variables in a session
Well I'm not sure if the question is clear, what I want to do is to take some variables I recieve from a form and save them using dtml with all the session information and then read from there in the following pages.
for exampe I want tosave there the field fx_in and then read it back in some other pages.
_________________________________________________________________ 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 )