Hiaspsun11,
For tracking last login you need to save the datetime of the users in database.
From that details you can fetch the details when ever required.
If you want to track each user last login then you need to update the LastLoginDateTime in the database for that particular user.