Who is logged in

North2Alaska

Joined: 2013-02-03
Posts: 1
Posted: Sun, 2013-02-03 02:28

I have a family photo gallery. As we ramp up (everybody uploading photos) some activities, like batch tag, could create conflicts when multiple people are tagging the same photos. What I would like to display on the side block is anybody that is currently logged in. Is there a module that will do that? How difficult would it be to build one? (I know there are a lot of "depends" there, but in general. :-) )

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2013-02-04 04:32

As with most web based applications this is very difficult to do.
Currently I'm logged into 2 different G3 installs in different tabs and I have not done anything on one of them for over 3 or 4 days. There is a log that tracks log-ins and log-outs but I rarely log-out as I suspect most users don't either so how do you track what is real use-full for your situation?
One could, in a sidebar block, query the log table in the DB and show who is logged in in the last few hours, but is that really useful? Should the user still be shown if they did not log-out as I never do? Who sets the time? Does it auto refresh with AJAX or just with new page loads?

User tracking is not part of the application. Session management and security is done on a per operation basis.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team