User-710964228 posted
keep 1 column in table for storing the last login date time.
and for every login session take the last date time in your procedure with authetication info
and on log out update this info from user tables so that your will get the correct correct login time for next time