Yes, with tomcat and HttpSessionListener it works great thank you.
But my need was to listen xwiki users sessions but finally it is different
than tomcat session (i guess xwiki made that for supporting multi jee
containers ).
I solved this probleme by implementing a custom Authentication using a
Groovy script.
--
Farouk Korteby
2011/10/14 Paul Libbrecht <paul(a)hoplahup.net>
Binding directly into the servlet-container could
work.
The Tomcat manager shows me the sessions, but it needs to be flagged as
privileged and certainly goes inside the inner-pinnings.
paul
Le 14 oct. 2011 à 16:35, Sergiu Dumitriu a écrit :
On 10/10/2011 09:48 AM, farouk korteby wrote:
Hi devs,
I want to get Java HttpSession by JSESSIONID directly from Groovy.
Is it possible ? if yes how ?
Thanks.
No, there's no way of accessing other sessions than your own, for
security reasons. There used to be the HttpSessionContext class for
getting access to any session, but it has been deprecated since the
Servlets 2.1 specification.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs