[Zope] SQL Session first time load

Paul Zwarts paz@oratrix.com
Wed, 16 May 2001 17:14:20 +0200


Hi all,

Is there a reason why you cannot query _ZSession on the first page access?

Observe:

<var header>
<var contentstuff>
<var footer>

Header:
call Session

Footer
use a ZSQL session that logs a pageload data including the PreciseTime as
PK, and Zsession as foreign key and the page address with query string.

What happens..:

First time you load, you get a key error for  _ZSession.

To fix it:

Reload page and all resumes as should. But I especially want to record the
entry point for a browser... which cannot happen if only the second load can
be logged.


Paz