NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Mark Sarson on January 28, 2016, 11:33:30 AM

Title: NT8.69, NetWebPage Won't close files if user isn't logged in and Security is set
Post 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
Title: Re: NT8.69, NetWebPage Won't close files if user isn't logged in and Security is set
Post by: Bruce on January 28, 2016, 10:03:57 PM
>> 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
Title: Re: NT8.69, NetWebPage Won't close files if user isn't logged in and Security is set
Post by: Mark Sarson on January 28, 2016, 10:58:24 PM
Bruce, the title does say NetWebPage :)
Title: Re: NT8.69, NetWebPage Won't close files if user isn't logged in and Security is set
Post by: Bruce on January 29, 2016, 09:04:37 AM
well, don't be hiding important information in the subject line!!  :)
Title: Re: NT8.69, NetWebPage Won't close files if user isn't logged in and Security is set
Post by: Bruce on February 05, 2016, 12:20:50 AM
thanks Mark - I've tweaked this in 9.06 so that security related stuff is done before the files are opened.

cheers
Bruce