Re: Best way to track logged in users?

2016-05-13 Thread Martin Grigorov
Wicket creates Session objects but until they are something calls Session#bind() there is no Http Session created, i.e. the Wicket Session is temporary for the current request. ISessionListener is notified when Wicket Session is created. Martin Grigorov Wicket Training and Consulting

Re: Best way to track logged in users?

2016-05-13 Thread Tom Götz
Hi Martin, thanks for the pointers, will have a look at 2): can I also use org.apache.wicket.ISessionListener? What’s the difference to org.apache.wicket.session.ISessionStore.BindListener (besides that the bind/unbind methods are split into two separate interfaces)? Cheers, Tom > On

Re: Best way to track logged in users?

2016-05-13 Thread Christoph Läubrich
In fact there is no reliable way, since a client can close whenever it needs to without notify the server. You can try to guess it by observing sessions, and the you should use a session-listener for maximum felxibility. In this listener you can of course obtain the WicketSession it is stored

Re: Best way to track logged in users?

2016-05-13 Thread Martin Grigorov
Hi, You can use: 1) plain Servlet APIs - http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpSessionListener.html 2) Wicket APIs - ISessionStore#register[Un]BindListener() Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, May 13, 2016 at 8:02 AM, Tom

Re: Best way to track logged in users?

2016-05-13 Thread Tom Götz
Thanks for you hint, I hoped that there would also be a Wicket based solution. As I have a custom Wicket-Session class I’d like to also display certain properties of that session objects. So what I’m looking for is a way to get a List for displaying in a DataTable … Tom > On 13.05.2016,

Re: Best way to track logged in users?

2016-05-13 Thread Robby O'Connor
I just realized I gave the wrong answer...disregard --Rob Sent from my cell, please excuse any typos. On May 13, 2016 2:37 AM, "Christos Stieglitz" wrote: > This is not a wicket related issue. > > There are some frameworks out there, both open source and commercial, > with

Re: Best way to track logged in users?

2016-05-13 Thread Christos Stieglitz
This is not a wicket related issue. There are some frameworks out there, both open source and commercial, with this functionality. One of my customers uses Omniture (commercial) with good results. But perhaps you need a subset of the omniture features, so another framework may suit you better.

Re: Best way to track logged in users?

2016-05-13 Thread Robby O'Connor
Session cookies. --Rob Sent from my cell, please excuse any typos. On May 13, 2016 2:02 AM, "Tom Götz" wrote: > Hi there, > > I’d like to track the currently logged in users with the corresponding > session ids for displaying them on an admin page. What’s the best way to do >

Best way to track logged in users?

2016-05-13 Thread Tom Götz
Hi there, I’d like to track the currently logged in users with the corresponding session ids for displaying them on an admin page. What’s the best way to do that? I was thinking about storing sessionId/userId data in the database, but I’m not sure yet if that would be the best approach. What