New course! Every coder should learn Generative AI!
Try a free lesson0
how to get last login timestamp from database in mvc using stored procedure and api
how to get last login timestamp from database in mvc using stored procedure and api
2 Answers
+ 1
When someone loggs in, upload that date/time into the database. when he loggs in the next time, first print out the previous date into a session variable (so he can see it untill he loggs out) and then update the database with the new time.
0
Thank you.