How to check the last login user were doing in the system

Hi,

I'm new to solaris/ Unix and would like to know how to check in the system what
was the last login user were doing. Is there any way to check this? Thanks in advanced.

Please see the man pages of w,last,who for answers or search the forum