[OGo-Users] a way to figure out, who is actually logged in toOGo
users@opengroupware.org
users@opengroupware.org
Sat, 31 May 2008 13:02:01 +0100
If you login (even as the non-root user) before you request /x/WOStats,
then you will not see the login page, just the stats. Unfortunately, it
doesn't show you anything like a session count.
Also, as it is returning XML then on browsers such as Firefox one gets an
error ("Error loading stylesheet: Parsing an XSLT stylesheet failed.") On
IE the WOStats will get formatted into a table for you.
As for your testing, assuming that you are not calling direct actions
(some of which might not use a session), it might be easier to look for an
unexpectedly high number of sessions based on the number of distinct
'wosid=xxxxxxxxxxxxxxxx' in the urls in the test results. It looks as
though the ogo-webui is using both cookies and the wosid parameter to
identify sessions. As long as the cookie session is still valid, removing
'wosid=' from the url will not prompt a login.
This still wouldn't actually tell you who is logged into OGo (although
that doesn't sound like it is what you are actually looking for). That
would presumably require an enhancement where session ids were associated
with userids in the backend (being removed when the session terminates).
Hope that helps.
Bernard
Re: [OGo-Users] a way to figure out, who is actually logged in toOGo
Sebastian Reitenbach
to:
users
31/05/2008 10:33
Sent by:
users-admin@opengroupware.org
Please respond to users
users@opengroupware.org wrote:
> > I am looking for a way to figure out, who is actually logged in into
ogo?
> > I use webiject to measure response times, I use it to login, and enter
a
> > project. I do this every two minutes. To make sure, that the times
that
I
> > measure are representative, therefore I'd like to figure out, whether
there
> > is a new session created each time I login using the script, or
whether
an
> > existing session is reused.
> > Or are there Defaults that I can set to see whether a session is
reused,
or
> > created?
>
> I believe that the WebUI uses a WOServerSessionStore, which has an
> activeSessionsCount method. Maybe you could create something to ping
> that method via a direct action and at least get a session count?
ah, ok, but I was looking for sth. maybe already implemented. I tried to
access the WOStats page, to take a look, whether I can use some
information
from there, but I don't get it work. It only asks me to login.
http://www.opengroupware.org/en/devs/docs/snippets/Profiling.html
thanks
Sebastian
--
OpenGroupware.org Users
users@opengroupware.org
http://mail.opengroupware.org/mailman/listinfo/users