User Login Command
The first command to be written on the home.asp page is the login command. This command automatically creates a preset data entry module on which you have to enter the username and password credentials already defined and known by the PLC programme.For reasons of secure access to the DB of the computer programme variables, only one access at a time is allowed to the pages (only one user-connection at a time). The first connected user has priority.There is also a timeout mechanism that provides automatic disconnection after a programmable number of seconds of inactivity. If, after Login, there is no page recall or any operations before the timeout expires, a new login will be requested.The username & password requested are the same defined, on the hmi, with the widget UserLogin.The command is inserted in the … section of the html code.
Example:TEST ASP WEB SERVER
<% aspLogin("index.asp","denied.asp", 300); %> As an alternative, if the graphics are unsatisfactory you can write your own login form, as in the following example.The form to be called is /goform/aspFormLogin.asp.It requires the parameters:user (text type)password (password type)cmd with LOGIN value as SUBMIT action.In addition, you MUST specify the HIDDEN timout, pagetoload_loginok and pagetoload_denied parameters.
<% aspLogin( char *pageok, char * pagedenied , int timeout ); %> |
where:– pageok: name of page to be loaded if login done correctly – pagedenied: name of page to be loaded in case of error.– timeout : session timeout in seconds |