NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Richard I on December 23, 2016, 06:44:49 PM

Title: Restricting user access to a net web report that is in use.
Post by: Richard I on December 23, 2016, 06:44:49 PM
Hi
I have a NT web server app that prints reports by writing data to a temporary TPS file prior to printing,.
This file is cleared at the start of each report run.
It is feasible that different users will want to access this report simultaneously, selecting different variables to print.
How can I restrict  user access to this report  while it is "working" ?

many thanks
Richard
C10 NT 8.71
Title: Re: Restricting user access to a net web report that is in use.
Post by: terryd on December 26, 2016, 06:37:49 AM
Hi Richard. As an alternate suggestion, why don't you add the sessionid to the table and restrict the report to that session variable? Then you remove the records for that sessionid in the file after printing. That way all your users can print the report at the same time without affecting the others.
Title: Re: Restricting user access to a net web report that is in use.
Post by: Bruce on December 30, 2016, 05:19:38 AM
hi Richard,

yeah, I second what Terry said.

Cheers
Bruce