You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Eunice <pe...@gmail.com> on 2009/01/09 08:07:46 UTC
Get all sessions
Hi,
Is there any methods or functions in wicket that can give me
numbers of users/sessions that is currently active and viewing/opening a
page?
I've been googling and read on the API, still cannot get any clues and
unable to work it out..
Can i get number of sessions from my application by using ISessionStore or
HttpSessions, since the session will be keep in HttpSessions..
I do really appreciate your reply..
Eunice
--
View this message in context: http://www.nabble.com/Get-all-sessions-tp21367229p21367229.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Get all sessions
Posted by Eunice <pe...@gmail.com>.
Hi Jonathan and Peter, thanks alot for your reply, i tried to get the
sessions by using the
IRequestLogger as suggest by Jonathan . It do really helps.
IRequestLogger requestLogger = Application.get().getRequestLogger();
SessionData[] sessions= requestLogger.getLiveSessions();
System.out.println("The number of Live Sessions in my application is
["+sessions.length+"]");
Here is my second question, let say there are 2 sessions is currently log in
into my application.
session.getSessionId() == [bm1pgdr1y9hf]
session.getSessionId() == [198y9m0etdvpj]
When the first user [bm1pgdr1y9hf] login, i want to update the page to show
'Logged on users:1'
in [bm1pgdr1y9hf] 's homepage.
When the second user [198y9m0etdvpj] login, i want to update the page to
show 'Logged on users:2'
in both [bm1pgdr1y9hf] and [198y9m0etdvpj] 's homepage.
How can I update [bm1pgdr1y9hf] 's homepage after the second user
[198y9m0etdvpj] login?
Thanks alot again for your replies
Peter Ertl-3 wrote:
>
> implement javax.servlet.http.HttpSessionListener
>
> Am 09.01.2009 um 08:07 schrieb Eunice:
>
>>
>> Hi,
>>
>> Is there any methods or functions in wicket that can give me
>>
>> numbers of users/sessions that is currently active and viewing/
>> opening a
>> page?
>>
>> I've been googling and read on the API, still cannot get any clues and
>> unable to work it out..
>>
>> Can i get number of sessions from my application by using
>> ISessionStore or
>>
>> HttpSessions, since the session will be keep in HttpSessions..
>>
>> I do really appreciate your reply..
>>
>> Eunice
>> --
>> View this message in context:
>> http://www.nabble.com/Get-all-sessions-tp21367229p21367229.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Get-all-sessions-users-for-a-web-application-tp21367229p21407641.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Get all sessions
Posted by Peter Ertl <pe...@gmx.org>.
implement javax.servlet.http.HttpSessionListener
Am 09.01.2009 um 08:07 schrieb Eunice:
>
> Hi,
>
> Is there any methods or functions in wicket that can give me
>
> numbers of users/sessions that is currently active and viewing/
> opening a
> page?
>
> I've been googling and read on the API, still cannot get any clues and
> unable to work it out..
>
> Can i get number of sessions from my application by using
> ISessionStore or
>
> HttpSessions, since the session will be keep in HttpSessions..
>
> I do really appreciate your reply..
>
> Eunice
> --
> View this message in context: http://www.nabble.com/Get-all-sessions-tp21367229p21367229.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Get all sessions/users for a web application
Posted by Jonathan Locke <jo...@gmail.com>.
Take a look at RequestLogger and the InspectorBug
Eunice wrote:
>
> Hi,
>
> Is there any methods or functions in wicket that can give me
>
> numbers of users/sessions that is currently active and viewing/opening a
> page?
>
> I've been googling and read on the API, still cannot get any clues and
> unable to work it out..
>
> Can i get number of sessions from my application by using ISessionStore or
>
> HttpSessions, since the session will be keep in HttpSessions..
>
> I do really appreciate your reply..
>
> Eunice
>
--
View this message in context: http://www.nabble.com/Get-all-sessions-users-for-a-web-application-tp21367229p21372161.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org