Object serialization between different pages
Hi, Is it possible to serialize an object to share it across several pages ? This would allow one to pass the serialized object via the URL, and to retreive it in the form that would process the request. I know there is the pickle function in python, but is there a more Zopish way to do this ? Thanks, P.-J.
On Tue, 12 Sep 2000, Pierre-Julien Grizel wrote:
Is it possible to serialize an object to share it across several pages ? This would allow one to pass the serialized object via the URL, and to retreive it in the form that would process the request.
Oh, no! Think if I hack the page you sent to my browser and serialize a different object!! This is big security hole!!!
I know there is the pickle function in python, but is there a more Zopish way to do this ?
Learn to use sessions. There is no builtin session management in Zope, but there are 3 sessions Products out there. Oleg. ---- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
You could always use one of the session management products on the Zope site. My particular favourite is SQLSession, but others exist which do a similar job. hth Phil phil.harris@zope.co.uk ----- Original Message ----- From: "Pierre-Julien Grizel" <grizel@mouli.net> To: <zope@zope.org> Sent: Tuesday, September 12, 2000 12:23 PM Subject: [Zope] Object serialization between different pages
Hi,
Is it possible to serialize an object to share it across several pages ? This would allow one to pass the serialized object via the URL, and to retreive it in the form that would process the request.
I know there is the pickle function in python, but is there a more Zopish way to do this ?
Thanks,
P.-J.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Note that there is also a proposal in progress to put session-tracking in the Zope core. See http://dev.zope.org/Wikis/DevSite/Proposals/CoreSessionTracking and make comments if you see fit. ----- Original Message ----- From: <phil.harris@zope.co.uk> To: <grizel@mouli.net>; <zope@zope.org> Sent: Tuesday, September 12, 2000 9:06 AM Subject: Re: [Zope] Object serialization between different pages You could always use one of the session management products on the Zope site. My particular favourite is SQLSession, but others exist which do a similar job. hth Phil phil.harris@zope.co.uk ----- Original Message ----- From: "Pierre-Julien Grizel" <grizel@mouli.net> To: <zope@zope.org> Sent: Tuesday, September 12, 2000 12:23 PM Subject: [Zope] Object serialization between different pages
Hi,
Is it possible to serialize an object to share it across several pages ? This would allow one to pass the serialized object via the URL, and to retreive it in the form that would process the request.
I know there is the pickle function in python, but is there a more Zopish way to do this ?
Thanks,
P.-J.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Chris McDonough -
Oleg Broytmann -
Phil Harris -
Pierre-Julien Grizel