I am developing a mobile app which uses Joomla as the backend. So far I am able to get the user object through
$user = JFactory::getUser($id);
However, each time a user visits the app, I want it to set the lastvisitDate.
I have seen this erlated Doc JUser Class but I don't know how to use it. I will be glad if anyone can be of help - Thank you.