[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Sessions

webmaster at zope.org webmaster at zope.org
Wed Mar 3 15:30:03 EST 2004


A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/Sessions.stx#3-87

---------------

      To work around this problem, several environment variables may
      be specified during Zope startup which effect the parameters of
      the 'session_data' transient object container that gets created
      in the temp_folder.  These are::

        ZSESSION_ADD_NOTIFY

            An optional full Zope path name of a callable object to be
            set as the "script to call on object addition" of the
            session_data transient object container created in
            temp_folder at startup.

        ZSESSION_DEL_NOTIFY

            An optional full Zope path name of a callable object to be
            set as the "script to call on object deletion" of the
            session_data transient object container created in
            temp_folder at startup.

        ZSESSION_TIMEOUT_MINS

            The number of minutes to be used as the "data object
            timeout" of the "/temp_folder/session_data" transient
            object container.

        ZSESSION_OBJECT_LIMIT

            The number of items to use as a "maximum number of
            subobjects" value of the "/temp_folder" session data
            transient object container.

        % Anonymous User - Mar. 3, 2004 3:30 pm:
         Do those settings apply to all session_data objects in Zope instance? Is there a way to maintain settings
         separate for a site tree (virtual hosting)? DEL_NOTIFY and ADD_NOTIFY need to be absolute paths so
         acquisition doesn’t seem to help for defining different methods per site…



More information about the ZDP mailing list