Bitcoin Forum
April 06, 2020, 07:35:16 AM *
News: Latest Bitcoin Core release: 0.19.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Why Online status isn't in real time? Why?  (Read 65 times)
SM23031997
Hero Member
*****
Offline Offline

Activity: 924
Merit: 572


View Profile
March 22, 2018, 04:26:29 PM
 #1

I had this issue hundreds of times. whenever I reply to a thread I found that the person is no more online but status keeps showing that green sign(Online status) for quite long time. It should be in real time.
1586158516
Hero Member
*
Offline Offline

Posts: 1586158516

View Profile Personal Message (Offline)

Ignore
1586158516
Reply with quote  #2

1586158516
Report to moderator
1586158516
Hero Member
*
Offline Offline

Posts: 1586158516

View Profile Personal Message (Offline)

Ignore
1586158516
Reply with quote  #2

1586158516
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1586158516
Hero Member
*
Offline Offline

Posts: 1586158516

View Profile Personal Message (Offline)

Ignore
1586158516
Reply with quote  #2

1586158516
Report to moderator
owlcatz
Legendary
*
Offline Offline

Activity: 2142
Merit: 1308


http://www.coldkey.eu


View Profile WWW
March 22, 2018, 04:44:43 PM
 #2

I had this issue hundreds of times. whenever I reply to a thread I found that the person is no more online but status keeps showing that green sign(Online status) for quite long time. It should be in real time.

Well I suppose someone could just leave the page open and walk away.... I disable it because I don't want people thinking I'm "online" when I'm not for this very reason. Tongue
EcuaMobi
Legendary
*
Offline Offline

Activity: 1820
Merit: 1429


https://Ecua.Mobi


View Profile WWW
March 22, 2018, 04:51:51 PM
 #3

I had this issue hundreds of times. whenever I reply to a thread I found that the person is no more online but status keeps showing that green sign(Online status) for quite long time. It should be in real time.
You need to better understand what "online" on a regular website is.
Any user interacts with this forum (and therefore the forum knows he's still there) only when a link is clicked. The forum then sends the newly requested page and logs the activity.

Then the user reads the page for several minutes without asking for a new one. The forum doesn't have any idea whether the user is still there reading or if he already went to another site or closed the browser. The best it can do is "guesstimate" the user is there for about 15 minutes. So it marks the user as offline after 15 minutes of the last interaction.

For the online status to be "real time" a background (jQuery or similar) process would have to be querying the forum all the time, and it would need to keep updating the DB all the time. What a waste of bandwidth and mainly server's processing power!

The best you can do is check the user's "Last Active" time rather than the Online status and draw your own conclusions.

leonair
Sr. Member
****
Offline Offline

Activity: 700
Merit: 292


View Profile
March 22, 2018, 05:15:02 PM
 #4

I think it's real time, maybe the only thing that is not real time is when someone send a new message or post because it needs to refresh the page to load it.
shield132
Hero Member
*****
Offline Offline

Activity: 1428
Merit: 577



View Profile
March 22, 2018, 05:34:54 PM
 #5

I had this issue hundreds of times. whenever I reply to a thread I found that the person is no more online but status keeps showing that green sign(Online status) for quite long time. It should be in real time.
In idea it's real time but it doesn't refreshes statistics in every second and that also would take a lot of server resources.
On another side even FB doesn't shows in real time, for example when I close it, I am still shown online for 1-2 minute.
Hope that's not a big deal for you, forum doesn't needs to waste resources on that function.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!