FUNCTION OnProcessInit LOCAL lcParameter, lcOutFile, lcIniFile, lcOldError *** Any custom functionality you need to have happen on every hit. *** NOTE: Request and Response are not in scope yet, so you have to *** use THIS.oRequest, THIS.oResponse before the call to DoDefault() *** If you have no 'generic' code you may remove this method here. *** Retrieve the HTMLPagePath and cDataPath vars from our Config *** object. Config object settings come out of wcDemo.ini for this app *** in the [wwdemo] section. You can add additional properties to *** be persisted in the INI in the wcDemoMain.prg/wwDemoConfig class. THIS.cHTMLPAGEPATH = THIS.oServer.oConfig.owwDemo.cHTMLPagePath THIS.cDATAPATH = THIS.oServer.oConfig.owwDemo.cDataPath *** Add a global stylesheet to common HTML generation THIS.oResponse.cStyleSheet = this.ResolveUrl("~/westwind.css") *** Add global Session Support THIS.InitSession("wwDemo") *** Add Global authentication * IF !THIS.Authenticate("any") * RETURN .F. * ENDIF ENDFUNC