PDA

View Full Version : Sessions


steve_d555
September 8th, 2005, 06:53 PM
Hello all.

Does anyone know how to list all active sessions?

I am using login generator and I know how to show the individual session but I'm not sure if there is a way to show all sessions.

Thanks,
Steve

EDIT: Nevermind, I just made a new column called 'state' and when they logout is changed from 'active' to 'inactive' and vice versa.

rob
September 8th, 2005, 10:47 PM
Yea I was just gonna say it doesn't store those, but a state var would be good. You can count 'em, or do a find with :condition => "state = 1" or something like that.