[Zope-dev] CoreSessionTracking

Chris McDonough chrism@digicool.com
Mon, 23 Apr 2001 09:36:18 -0400


> Is onStart and onEnd broken in the CoreSessionTracking (0.8) product? (Or
am
> I broken? :-))

I hope neither ;-)

>
> I have a folder /Radio
>
> Within that folder I have a "Session ID Manager" and a "Session Data
> Manager" named Session.
>
> "Session onStart method path" of the "Session ID Manager" is set to
> /Radio/onStart
>
> I have an external method /Radio/onStart that does work if called
> standalone,
>
> from zLOG import LOG, WARNING
> def onStart(sdo):
>         LOG('session started', WARNING, 'session started')
>
> but it never gets called when I call my index_html;
>
> <dtml-var standard_html_header>
> <dtml-var "Session.getToken()">
> <dtml-if "Session.isTokenNew()">
>   Token is new.
> <dtml-else>
>   Token is not new.
> </dtml-if>
> <dtml-var standard_html_footer>

The onStart method will be called when a session data object is created.
Neither of the calls you show here create a session data object.  Something
like "Session.getSessionData()" would, however.

> Ths index_html method does return 'Token is new', but no onStart method is
> being called.
>
> What am I missing??? I have read the helpfile over and over again, but it
> still doesn't work.
>
> ?
>
> /Magnus
>
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
>