User log

37 views
Skip to first unread message

Gabriele

unread,
Oct 15, 2013, 4:59:59 AM10/15/13
to uf...@googlegroups.com
Hi to everybody,
I really appreciate this class, but I would like to know if there is a method or something to have a log of the users activities, something that will record the session_id, the login/logout time... 

I have seen that there is a field for the last_login, but could be nice have the whole history of an users.

What do you think about? Which is the best method to achieve this?

Thanks


Gabriele

Pablo Tejada

unread,
Oct 15, 2013, 8:07:04 AM10/15/13
to uf...@googlegroups.com

Hi,

There is no built-in method to achieve this. I do know that you will need a new table to store that information.

To at least log everytime the user logs in you can extend the uFlex class and overwrite the method that updates the last_login column to also insert the logging information in your new table.

To log the logout times you can use the same approach but just be aware it might be tricky since users dont usually logout by clicking that logout button but by closing their browsers or just navigating away from your site.

--
Project's home page http://ptejada.com/projects/uFlex/
---
You received this message because you are subscribed to the Google Groups "uFlex" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uflex+un...@googlegroups.com.
To post to this group, send email to uf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/uflex/b61786de-078b-4278-b978-e2a20c2132d6%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages