how to design the Latest Visitors functionality

i 'v searched this topic in forum , found nothing .so i start it here :lol:

in multi-user website ,we need this functionality badly. like yiiframework . in uses 's forum profile view , we can found this feature . so want to know how realize it .

any idea is welcome , such as how to design the db tables . if use the cookie to remember the user visit history and so on …

:o i save this post but failed , i don’t know the reason , seems it is db error , so i repeat submit it , hope i do nothing wrong :P