NetTalk Central

Author Topic: NT8.69, NetWebPage Won't close files if user isn't logged in and Security is set  (Read 3635 times)

Mark Sarson

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
>> 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

Mark Sarson

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
Bruce, the title does say NetWebPage :)

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
well, don't be hiding important information in the subject line!!  :)

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
thanks Mark - I've tweaked this in 9.06 so that security related stuff is done before the files are opened.

cheers
Bruce