NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: LuisMarcantoni on April 02, 2012, 03:25:19 AM

Title: Showing Browse users who are online in real time
Post 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
Title: Re: Showing Browse users who are online in real time
Post by: Bruce on April 02, 2012, 07:14:10 AM
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

Title: Re: Showing Browse users who are online in real time
Post by: LuisMarcantoni on April 02, 2012, 08:27:47 AM
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
Title: Re: Showing Browse users who are online in real time
Post by: Bruce on April 02, 2012, 11:55:56 PM
Hi Luis,

Ok - just so I'm 100% clear -
you want to see a list of people that are logged in?

cheers
Bruce

Title: Re: Showing Browse users who are online in real time
Post by: LuisMarcantoni on April 03, 2012, 02:28:02 AM
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
Title: Re: Showing Browse users who are online in real time
Post by: LuisMarcantoni on April 05, 2012, 01:12:33 PM
Hi Bruce

This functionality will be included in a subsequent version of NT?

Thanks

Regards


Luis
Title: Re: Showing Browse users who are online in real time
Post by: Bruce on April 05, 2012, 09:19:58 PM
yes, it's likely.

cheers
Bruce
Title: Re: Showing Browse users who are online in real time
Post by: LuisMarcantoni on April 06, 2012, 03:38:35 AM
Hi Bruce

I will be looking forward.  :)

Thank you very much.

Regards

Luis
Title: Re: Showing Browse users who are online in real time
Post by: Flint G on April 06, 2012, 10:39:05 AM
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 ;)
Title: Re: Showing Browse users who are online in real time
Post by: Alan Cochran on April 06, 2012, 12:15:58 PM
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]
Title: Re: Showing Browse users who are online in real time
Post by: LuisMarcantoni on April 06, 2012, 12:33:16 PM
Hi Alan

Thank you very much, we will be waiting.

Regards

Luis
Title: Re: Showing Browse users who are online in real time
Post by: Alan Cochran on April 10, 2012, 10:33:54 AM
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]
Title: Re: Showing Browse users who are online in real time
Post by: LuisMarcantoni on April 11, 2012, 02:23:12 AM
 :o

Thank you very much Alan, your work is much appreciated.

Will be implemented in my applications

Thanks

Best regards

Luis
Title: Re: Showing Browse users who are online in real time
Post by: MikeR on April 11, 2012, 02:44:54 AM
Some of us still use Clarion 6.3 ?
anyway this knowledge can be shared ?
Title: Re: Showing Browse users who are online in real time
Post by: LuisMarcantoni on April 11, 2012, 02:46:34 AM
Hi Alan
I find nothing of this in the example attached, you will be wrong by example?  :'(

Regards

Luis
Title: Re: Showing Browse users who are online in real time
Post by: Alan Cochran on April 11, 2012, 06:09:09 AM
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]
Title: Re: Showing Browse users who are online in real time
Post by: Alan Cochran on April 11, 2012, 06:20:59 AM
Hi MikeR,

Let me fire up C6.3 and make the necessary changes.  I will upload the example in a few minutes.

Alan
Title: Re: Showing Browse users who are online in real time
Post by: MikeR on April 11, 2012, 09:38:33 AM
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.
 

Title: Re: Showing Browse users who are online in real time
Post by: LuisMarcantoni on April 11, 2012, 05:34:50 PM
Thank you very much Alam

Regards

Luis