Ngstorage to persist a login

Hi,

I do install ngstorage using bower, is it possible to set some local ou session variable to persist a login?

My goal is that the user does not need to make a new login for a long time from the last login.

$scope.$storage = $localStorage;
$scope.$storage.login = "authenticated";

Can i persist the $scope.$storage.login variable setting the time to expire ?

Where you able to implement this???