Re: [Acegisecurity-developer] how to get online users list from acegi ???? (Ray Krueger)

2007-11-10 Thread Luke Taylor
Please use the support forums for user questions http://forum.springframework.org/showthread.php?t=45907 Mohammad Shamsi wrote: Thanks Axel, this is exactly what i looking for. sorry for bothering you, but another question : SessionRegistry is an interface, in it have an implementation

Re: [Acegisecurity-developer] how to get online users list from acegi ????

2007-11-08 Thread Mohammad Shamsi
hi all, yes scott, i want get a list of users currently on my system i saw the code, i wrote something like it, but i thought that acegi has some feature for this thank you. On Nov 8, 2007 2:00 AM, Scott McCrory [EMAIL PROTECTED] wrote: Or does he mean to get a list of users currently on his

Re: [Acegisecurity-developer] how to get online users list from acegi ???? (Ray Krueger)

2007-11-08 Thread Axel Mendoza Pupo
String users [] = (String[])SessionRegistry.getAllPrincipals(); List online; for(int i=0;iusers.length;i++) if(getAllSessions(users[i], Boolean.FALSE)!=null) online.add(users[i]); this

Re: [Acegisecurity-developer] how to get online users list from acegi ????

2007-11-07 Thread Scott McCrory
Or does he mean to get a list of users currently on his system (i.e. with active HTTP Sessions)? If so, Matt Raible wrote a very nice UserCounterListener that did the trick nicely for me: http://raibledesigns.com/downloads/appfuse/api/org/appfuse/webapp/listener/UserCounterListener.java.html