no actually, for two reasons:

1) it says: "The counter is associated to each visitor, and is
incremented each time the visitor reloads the page. Different visitors
see different counters."

2) i need to keep the usernames and ids.

i thought i could add something like "session.online_users =
session.online_users if hasattr(session, online_users) else {}" and
then in the login action i add the user to this dict. however since
every session info is kept seperate, i cannot get the global list.
different visitors see different online users which is only
themselves. :)

On Mar 3, 8:39 pm, "mr.freeze" <[email protected]> wrote:
> This?:http://web2py.com/book/default/section/3/3?search=sessions
>
> On Mar 3, 11:23 am, Mengu <[email protected]> wrote:
>
>
>
> > Hi,
>
> > After logging in, how should I collect the online users?

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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/web2py?hl=en.

Reply via email to