Re: Access to HttpSessions

2008-10-20 Thread Peter Stavrinides
This is something you have to do for yourself, as a session is specific to the 
container, and most containers expose the bare minimum for session handling in 
their API. Fortunately its very easy to do... best use a database table, that 
way you can collect some handy usage stats over time. 

cheers
Peter

-- 
If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Please visit http://www.albourne.com/email.html for important 
additional terms relating to this e-mail.

- Original Message -
From: Christoph Jäger [EMAIL PROTECTED]
To: Tapestry Users users@tapestry.apache.org
Sent: Sunday, 19 October, 2008 1:23:24 AM GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Access to HttpSessions

Hi,

I have a Tapestry5 application. On an administrator page, I want to  
show all active sessions (people have to log in to use the  
application), and make it possible to terminate sessions / view user  
details and session details (login time, idle time, ...). How can I  
get access to these sessions? I know how to get my own session, but I  
can not find how to get a list of all sessions.

Thanks,

Christoph


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Access to HttpSessions

2008-10-18 Thread Christoph Jäger

Hi,

I have a Tapestry5 application. On an administrator page, I want to  
show all active sessions (people have to log in to use the  
application), and make it possible to terminate sessions / view user  
details and session details (login time, idle time, ...). How can I  
get access to these sessions? I know how to get my own session, but I  
can not find how to get a list of all sessions.


Thanks,

Christoph



Re: Access to HttpSessions

2008-10-18 Thread Jecki
You can try to create an HttpSessionListener
(http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionListener.html)
and upon creation of the HttpSession instance you can store inside a
'registry' (can be in the servlet context) and then later on you can
get the session from that registry.

Regards,
Jecki

On Sun, Oct 19, 2008 at 6:23 AM, Christoph Jäger
[EMAIL PROTECTED] wrote:
 Hi,

 I have a Tapestry5 application. On an administrator page, I want to show all
 active sessions (people have to log in to use the application), and make it
 possible to terminate sessions / view user details and session details
 (login time, idle time, ...). How can I get access to these sessions? I know
 how to get my own session, but I can not find how to get a list of all
 sessions.

 Thanks,

 Christoph

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]