NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Mark Sarson on January 28, 2016, 11:33:30 AM
-
Upon ticking User must be logged in, the following code is generated by the templates.
If p_web.GetSessionLoggedIn() = 0
If p_web.site.LoginPageIsControl
p_web.MakePage(p_web.site.LoginPage)
else
p_web._SendFile(p_web.site.LoginPage)
End
Return
End
At the top of the procedure is:
GlobalErrors.SetProcedureName('ViewPlan')
DO OpenFiles
At the end of the procedure is:
do CloseFiles
GlobalErrors.SetProcedureName()
However if the user isn't logged in then the calls to close the files isn't made, is this correct?
Regards
Mark
-
>> Upon ticking User must be logged in, the following code is generated by the templates.
which templates Mark?
Specifically what Procedure template are you looking in? NetWebBrowse, NetWebForm, ..... ?
cheers
Bruce
-
Bruce, the title does say NetWebPage :)
-
well, don't be hiding important information in the subject line!! :)
-
thanks Mark - I've tweaked this in 9.06 so that security related stuff is done before the files are opened.
cheers
Bruce