Storing User login logout details into data base

I have a requirement to store the user login details like time and locale as soon as user logs in and as well as logout details when a user logout from the application. Can any one suggest me how to do this in Appian.

  Discussion posts and replies are publicly visible