On Thursday, October 31, 2002, at 11:44  AM, Aparajita Fishman wrote:

On PreExecute($ioURL; $ioRequestInfo; $ioQueryParams; $ioFormVariables) -> outStatus

$ioURL Text The requested URL (only the directory portion, no host or protocol)
$ioRequestHeaders Longint Handle to the built-in 'request info' collection
$ioQueryParams Longint Handle to the built-in 'query params' collection
$ioFormVariables Longint Handle to the built-in 'form variables' collection
RESULT Boolean True to allow execution, false to abort execution


This gives you a chance to munge them (at your own risk) before actual execution. If outStatus is false, the request will not be executed and a status of -3 will be returned to the shell.


What does outStatus=false eventually return to the browser? Should it be an integer to which can be passed an error code (eg 404)? Returning 0 or 200 would cause execution to continue.

On PostExecute($ioResponseHeaders; $ioResponseCookies; &$ioResponse)

The first two parameters are handles to the built-in Active4D collections, the third is the actual response BLOB.

If this notation "&$ioResponse" refers to a pointer to a BLOB, and this means we can edit the BLOB, then I can't see we could ask for more.


If the page request is inside a session, is the session valid (ie contents are accessible) from inside both these hooks?

Other than these questions, this is looking good. But now that I've seen how you implemented realms I hardly need any of it any more. :-)

Ari Maniatis

-------------------------->
ish group pty ltd
7 Darghan St Glebe 2037 Australia
phone +61 2 9660 1400   fax +61 2 9660 7400
http www.ish.com.au | email [EMAIL PROTECTED]
PGP fingerprint 08 57 20 4B 80 69 59 E2  A9 BF 2D 48 C2 20 0C C8




Reply via email to