Last Accessed Date of Mail file

Dear all

Can any1 please guide me in order to locate the Last Accessed date of the mail file by a user.

I need to create a functionality where i have to show the User Name and the last date of accessed on his/her mail file…

I found a Info tab under the properties of database. where i found User Details log which gives Exactly what i wanted to have but i want this to be done with coding.

Waiting for a reply