NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: LuisMarcantoni on April 02, 2012, 03:25:19 AM
-
Hi All
In WebServer, as you can do so in another tab, as LOG and PERFORMANCE, is called USER ONLINE ??
This Tab showing Browse users who are online in real time
P.D.: Sorry for my English, I find it hard the English :)
Tanks
Regards
Luis
-
Hi Luis,
The number of people "online" is the same as the number of sessions. So that's on the performance tab already.
However I think you are wanting the _names_ of the people currently online - I guess the names of the people logged in. (If they are not logged in, we won't know their name).
right?
cheers
Bruce
-
Hi Bruce
The number of sessions is not the same, if the user reached the page that is counted, I need to know the name of which is connected at login and that does not show when you logout.
The just want to know are the names of persons identified with a login.
This is possible?
Thanks
Regards
Luis
-
Hi Luis,
Ok - just so I'm 100% clear -
you want to see a list of people that are logged in?
cheers
Bruce
-
HI Bruce
yes, that is what I need, I also believe it would help many in this community.
Thank you very much Bruce.
Regards
Luis
-
Hi Bruce
This functionality will be included in a subsequent version of NT?
Thanks
Regards
Luis
-
yes, it's likely.
cheers
Bruce
-
Hi Bruce
I will be looking forward. :)
Thank you very much.
Regards
Luis
-
We, too, would like to be able to look into the session queue to see which users are currently logged in. Too bad we can't "vote" this one up the list ;)
-
I have expanded the WebServer procedure with a tab "Currently Logged In" in a couple of my projects. It wasn't much work to do.
When the user logs in, I use a TPS file to keep a history of users with their logged in / out date and time info. And I use an In-Memory table to show Logged in Users in the "Currently Logged In" tab. So if I ever need to restart the program, I don't have to handled the management of records in the table. I am using a timer on the WebServer procedure to refresh the window.
I will upload a scaled down version of one of my apps by next week to show what I have done. I also plan to add a NetWebBrowse procedure to show "Currently Logged In" users so anyone with administrator rights can view this on the web instead of having to go the server.
Alan
[attachment deleted by admin]
-
Hi Alan
Thank you very much, we will be waiting.
Regards
Luis
-
Hi All,
I have attached an updated version of the BasicWithLogin(3) app that shows "Currently Logged In" users on the WebServer procedure. There are 3 additional tables in the "Settings" dictionary that I use to accomplish this. (WebUser, WebLog and WebLogOL). The WebLogOL table is used as a temporary file that is created when the WebServer opens. There is only one user created in the WebUser table as "demo" and password is "demo.
The 3 procedures to look are WebServer, WebHandler and LoginForm. In the WebServer procedure, the timer is set to 1000 (10 seconds).
I hope this is helpful and if you have any comments, questions or any recommendations, please let me know. I used Clarion8 to generate this app.
Regards...
Alan
[attachment deleted by admin]
-
:o
Thank you very much Alan, your work is much appreciated.
Will be implemented in my applications
Thanks
Best regards
Luis
-
Some of us still use Clarion 6.3 ?
anyway this knowledge can be shared ?
-
Hi Alan
I find nothing of this in the example attached, you will be wrong by example? :'(
Regards
Luis
-
Hi Folks,
Sorry about that.... Please use this zip file instead. I also replaced the previous zip file with the correct one as well.
Alan
[attachment deleted by admin]
-
Hi MikeR,
Let me fire up C6.3 and make the necessary changes. I will upload the example in a few minutes.
Alan
-
Hi Alan,
found an old copy of Clarion 8
I have unzipped it and looked at the source
I am curios about a few things.
I follow the embed logic in the login , logoff and webserver procedures.
1. I don't understand what the embed code in the webhandler does ?
It seems to position at the latest record , but then just closes the file ?
2. what does this code do ?
IF self.IfExistsValue('Login')
3. I assume p_web._OpenFile(WebUser) in the login procedure opens the file.
I don't see a ._closeFile,.What is the difference between ._openFile and Access:File.Open()
Can it be used anywhere p_web exists ?
Thanks in advance for your time.
-
Thank you very much Alam
Regards
Luis