Yeah, you're right. The beforeFilter could update a user last action session variable with a timestamp. I would find it odd if someone didn't make this a component or a plugin already?
Yes: http://bakery.cakephp.org/articles/view/check-member-user-online-or-offline-status http://www.webtechnick.com/blogs/view/227/CakePHP_Who_s_Online_Plugin And related: http://groups.google.com/group/cake-php/browse_thread/thread/98d327c8e6032af9 HTH Jacob On Apr 17, 3:56 pm, Wilhelm <[email protected]> wrote: > Hi, > > Just a note on Jacob's response. If you track a logout time that would > assume a user always logs out before leaving the site and from what I > have seen this is definately not the case. > What I would do is store a last access time ( the last time the user > opened a page ) with this data you can set business rules on what you > classify as a user still lagged in, ie. if the user has been active in > the last 5 minutes. > > Please note that the approached that I suggested is not full proof but > it will give you some idea of logged in users > > Kind regards > > Wilhelm > > On Apr 17, 9:36 am, jacmoe <[email protected]> wrote: > > > > > > > If you keep track of login/logout time, you can just pick a list of > > users with a login time newer than their logout time.. > > There's probably more intelligent ways of doing this, but I can't > > think of any right now. :) > > > Cheers > > > Jacob > > > On Apr 17, 6:07 am, bondo <[email protected]> wrote: > > > > Is it possible to get a list of users that are currently logged into > > > the system? I'd like to be able to log them out if I'm performing > > > maintenance on the system or even just the ability to log a single > > > user out for any reason. > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers > > > with their CakePHP related questions. > > > > You received this message because you are subscribed to the Google Groups > > > "CakePHP" group. > > > To post to this group, send email to [email protected] > > > To unsubscribe from this group, send email to > > > [email protected] For more options, visit this group > > > athttp://groups.google.com/group/cake-php?hl=en > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others > > with their CakePHP related questions. > > > You received this message because you are subscribed to the Google Groups > > "CakePHP" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] For more options, visit this group > > athttp://groups.google.com/group/cake-php?hl=en > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with > their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
