Save/read session details

In the openfire console admin I can access the sessions details of all users logged in.

What I want to do is to save the datetime info about the users sessions, but saving only the first time they log in and, if possible, the datetime they log out.

In the console admin I can only see the last time the user has logged in, and I need to save the info about his first login time.

Is there a way to save this info? I need to do a ‘everyday report’ about this information, to send to my superior.

Sorry for my bad english.