Record last activity of a logged in user in Pyramid
In an application I am building in Pyramid,I have a users table with a
field called 'last_activity'. This field is intented to store the
timestamp of the last time a user visited a page in the system.
Since I'm still a bit new in pyramid, I don't know if pyramid has some
sort of way to create a "common" view that can be executed everytime a
user visits any page in the site (in order to update the 'last_activity'
field in this view function). Is this possible?
If that is not possible, what would you recommend me to do this?
Thanks in advance.
No comments:
Post a Comment