File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JForum and the fly likes Online Users Cache Not Refreshing Correctly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Online Users Cache Not Refreshing Correctly" Watch "Online Users Cache Not Refreshing Correctly" New topic
Author

Online Users Cache Not Refreshing Correctly

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Online Users Cache Not Refreshing Correctly
 
Similar Threads
Firefox window open on unload
Admin Editing User Informations
Caching issue
Clear firefox cookies on closing the window
Language not refreshed correctly