You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by nino martinez wael <ni...@gmail.com> on 2010/10/26 15:40:44 UTC

[1.5]Current number of users (sessions) in a wicket app

Hi

Im wondering if 1.5 brings new possibilities towards counting current users/
sessions? Or if I still need to make my own HttpSessionListener for this?

regards Nino

Re: [1.5]Current number of users (sessions) in a wicket app

Posted by ge...@gmx.org.
Hi Nino,

> Or if I still need to make my own HttpSessionListener for this?

Why don't you just turn on the RequestLogger like this:

Application.getRequestLoggerSettings().setRequestLoggerEnabled(true)

Then you can get quite some information about the current sessions, see the interface IRequestLogger for this.

Or is there a catch about the RequestLogger that I am missing? Performance maybe?

Cheers,

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: [1.5]Current number of users (sessions) in a wicket app

Posted by Martin Grigorov <mg...@apache.org>.
You can provide implementation
of org.apache.wicket.session.HttpSessionStore.onBind(Request, Session) which
is being called for each Session.bind(), i.e. non-temporary sessions.
And #onUnbind() of course.

On Tue, Oct 26, 2010 at 3:40 PM, nino martinez wael <
nino.martinez.wael@gmail.com> wrote:

> Hi
>
> Im wondering if 1.5 brings new possibilities towards counting current
> users/
> sessions? Or if I still need to make my own HttpSessionListener for this?
>
> regards Nino
>