Save (Insert) Login and Logout time in Database in AngularJS

Last Reply 5 months ago By skp

Posted 5 months ago

How to save login time into the database when I loggedin into the application and the time when I logged out from the application in angularjs

Posted 5 months ago

 

$scope.date = new Date();
$scope.login = function() {
    $scope.loginDate = $scope.date;
}
$scope.logout = function() {
    $scope.logoutDate = $scope.date;
}