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: [email protected]
>> For additional commands, e-mail: [email protected]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
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: [email protected]
For additional commands, e-mail: [email protected]