[Zope] How can I save variables in a session

Edward Muller edwardam at interlix.com
Tue Sep 16 14:56:27 EDT 2003


In a python script:

session = container.REQUEST.SESSION

session.set('<name>') = value
value = session.get('<name>')

replace '<name>' with the string you want to associate the value with.
You can pretty much treat the session as a dictionary.

On Tue, 2003-09-16 at 12:47, Alexander Alvarado wrote:
> 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 at 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 )
-- 
Edward Muller - http://www.interlix.com - "Open Source Specialists"
Dedicated Zope Hosting - Web Hosting - Open Source Consulting
Network & PC Service & Support - Custom Programming
Phone: 417-862-0573 - Cell: 417-844-2435 - Fax: 417-862-0572
Jabber: edwardam at jabber.interlix.com - AIM: edwardam453 - ICQ: 287033
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.zope.org/pipermail/zope/attachments/20030916/d92c93d9/attachment.bin


More information about the Zope mailing list