NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
NT8.69, NetWebPage Won't close files if user isn't logged in and Security is set
« previous
next »
Print
Pages: [
1
]
Author
Topic: NT8.69, NetWebPage Won't close files if user isn't logged in and Security is set (Read 3704 times)
Mark Sarson
Newbie
Posts: 33
NT8.69, NetWebPage Won't close files if user isn't logged in and Security is set
«
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
Logged
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: NT8.69, NetWebPage Won't close files if user isn't logged in and Security is set
«
Reply #1 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
Logged
Mark Sarson
Newbie
Posts: 33
Re: NT8.69, NetWebPage Won't close files if user isn't logged in and Security is set
«
Reply #2 on:
January 28, 2016, 10:58:24 PM »
Bruce, the title does say NetWebPage
Logged
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: NT8.69, NetWebPage Won't close files if user isn't logged in and Security is set
«
Reply #3 on:
January 29, 2016, 09:04:37 AM »
well, don't be hiding important information in the subject line!!
Logged
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: NT8.69, NetWebPage Won't close files if user isn't logged in and Security is set
«
Reply #4 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
Logged
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
NT8.69, NetWebPage Won't close files if user isn't logged in and Security is set