Sessions with Zope 2.5.0b3 and SiteRoot ?
Hello List I am new with ZOPE and I have installed Zope 2.5.0b3 and run some tests with sessions. Everything works fine so far. Now I want to create a SiteRoot and that means (please tell me if I am wrong) that I need an own tmp_folder with a Transient Object Container in the SiteRoot directory. I have created a tmp_folder and added a Transient Object Container with the ID session_data. A Session Data Manager and a Browser ID Manager are also in the SiteRoot directory. Every time when I restart ZOPE the Transient Object Container gets lost. If I read the help I see, thats this is normal because all Objects in a tmp_folder will be deleted when restarting ZOPE. But the original tmp_folder in the RootFolder of ZOPE always has a Transient Object Container called session_data after starting ZOPE. I guess, that this Transient Object Container is created during startup. Is there any help or a howto on how I can create my own Transient Object Container during startup. Thanks in Advance Markus
Hi Markus, First of all, before you do much work with Zope 2.5b3, please upgrade to Zope 2.5b4. There is a bug in the session code that will bite you when you go to upgrade. See http://www.zope.org/Products/Zope/2.5.0b4/zope_250b4_release/workaround. It's best to get this over with. There's no real easy way right now to cause Zope to make a new transient data container somewhere else at startup.. You can use the existing transient data container object if you like. I don't believe that you need a temp folder in the site root. The temp_folder in the root can be used (as well as the transient data container that is automagically created in it) via acquisition. ----- Original Message ----- From: "Markus Keller" <m.keller@orcasoft.ch> To: <Zope@zope.org> Sent: Monday, January 21, 2002 5:36 AM Subject: [Zope] Sessions with Zope 2.5.0b3 and SiteRoot ?
Hello List
I am new with ZOPE and I have installed Zope 2.5.0b3 and run some tests with sessions. Everything works fine so far. Now I want to create a SiteRoot and that means (please tell me if I am wrong) that I need an own tmp_folder with a Transient Object Container in the SiteRoot directory. I have created a tmp_folder and added a Transient Object Container with the ID session_data. A Session Data Manager and a Browser ID Manager are also in the SiteRoot directory.
Every time when I restart ZOPE the Transient Object Container gets lost. If I read the help I see, thats this is normal because all Objects in a tmp_folder will be deleted when restarting ZOPE. But the original tmp_folder in the RootFolder of ZOPE always has a Transient Object Container called session_data after starting ZOPE. I guess, that this Transient Object Container is created during startup. Is there any help or a howto on how I can create my own Transient Object Container during startup.
Thanks in Advance
Markus
_______________________________________________ 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 )
Hi Chris
First of all, before you do much work with Zope 2.5b3, please upgrade to Zope 2.5b4. There is a bug in the session code that will bite you when you
I use Beta 4 now!
I don't believe that you need a temp folder in the site root. The temp_folder in the root can be used (as well as the transient data container that is automagically created in it) via acquisition.
You are right, it works. Thanks for your help. Markus
participants (2)
-
Chris McDonough -
Markus Keller