• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Online Users Cache Not Refreshing Correctly

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys!!!

I made the following steps:

1. Open a Firefox window to my local JForum and logged as Admin
2. Open a 2nd Firefox window and logged as another resistered user
2. Open a Internet Explorer (IE) window
3. Open a 2nd IE window...
4. Open a 3rd IE window...
5. It shows at bottom: 5 online users: 2 registered, 3 visitants

Flawless victory!!! It's absolutelly correct!!! But...

6. I closed one IE window and refreshed it at Firefox: no changes!
7. Closed another, and another, and another...: no changes!
8. Closed almost all windows, less one of them: no changes!
9. Logged out Admin: one change! Now it shows: 5 online users: 1 registered, 4 visitants!

It's absolutelly wrong!!! :evil:

I thinked it would be a Cache problem, so I:

10. Logged in again (as Admin) and "cleaned the sessions": now it correctly shows: 1 online users: 0 registered, 1 visitant.

Is it a normal behaviour?

Ow, one more suggestion: the following line is in pt_BR, but is gramatically wrong:

Existem 1 usu��rios on-line: 0 registrados, 1 visitantes(s)



The bold selected text wouldn't be there

[ ]'s
[originally posted on jforum.net by leandro_salvador]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The behavior is normal, these non-existant users will disappear once their session expire. About 10min?

munhin
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The session of the user is still existant although the browser is non-existant. The user will disappear in the gui when his session expires. This is 'the flaw' of using webapplications. There are nog good ways of making this work correctly. HTTP is a request/response mechanism that always start from the browser. It's not like the server can send pings to the client to make sure he is still online.
[originally posted on jforum.net by mortis__rigor]
 
Create symphonies in seed and soil. For this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic