If you figure out a solution for this, let us know. I don't know of a
good solution, but MessAdmin may solve a this by providing a more
accurate count of active sessions. If we integrate it, we can remove
clickstream and activeUsers. Of course, it may introduce a whole
bunch of new pages - I don't know, I haven't tried to integrate it
yet.
http://messadmin.sf.netMatt
On 4/9/07, thrasher <jason@coachthrasher.com> wrote:
>
> Is the "Current Users" page supposed to show the currently logged in users
> with open sessions?
>
> It seems like it is, but I'm getting a bug when a user's browser doesn't
> have any cookies set: if the user logs in, they don't show up in the list of
> "Current Users". They only show up in the list if they've previously logged
> in, logged out, then logged back in again. Subsequent logins thereafter
> work correctly.
>
> This seems to have something to do with the UserCounterListener class which
> tracks the current sessions. If the UserCounterListener.EVENT_KEY session
> attribute is set to anonymous, it doesn't seem to get reset correctly when a
> user logs in. In the SignupAction class this can be fixed by removing the
> attribute before logging the user in automatically with:
> getSession().removeAttribute(UserCounterListener.EVENT_KEY);
> before the comment:
> // log user in automatically
>
> But I can't figure out how to fix it for regular logins. I'd like to be
> able to see all users, regardless of how their cookies started in the
> "Current Users" page.
>
> Steps to reproduce:
> 1) clear all browser cookies (either firefox or IE)
> 2) run mvn jetty:run-war
> 3) in browser login as an admin (mraible/tomcat)
> 4) navigate to
http://127.0.0.1:8080/activeUsers.html> error: admin user is logged in but doesn't appear
>
> Regular users have the same issue:
> 1) open a second browser (not a new tab, a whole new process with different
> session cookies)
> 2) login as tomcat/tomcat
> 3) back in the "admin" browser, refresh the "Current Users" page
> error: normal user doesn't appear in the list
>
> When a new user account is created the same thing happens:
> 1) open a browser with no cookies set
> 2) create a new user account which is auto-logged in by SignupAction
> 3) back in the "admin" browser, refresh the "Current Users" page
> error: normal user doesn't appear in the list
>
> thanks,
> Jason
>
> --
> View this message in context:
http://www.nabble.com/current-user-count-incorrect-tf3550268s2369.html#a9911575> Sent from the AppFuse - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@appfuse.dev.java.net
> For additional commands, e-mail: dev-help@appfuse.dev.java.net
>
>
--
http://raibledesigns.com---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@appfuse.dev.java.net
For additional commands, e-mail: dev-help@appfuse.dev.java.net