PolyDeploy/Clients/Deploy/src/js/services/SessionService.js
// Gets a new session from the API.
Gets a new session from the API.
Gets a new session from the API .
function newSession() {
            if (sessionRefreshInterval) {
                $interval.cancel(sessionRefreshInterval);
            }
            sessionPromise = SessionDataService.create().then(
                function (session) {
                    replace(sessionObject, session);
                    return sessionObject;
                });
            return sessionPromise;
        }
function newSession ( ) { if ( sessionRefreshInterval ) { $interval . cancel ( sessionRefreshInterval ) ; } sessionPromise = SessionDataService . create ( ) . then ( function ( session ) { replace ( sessionObject , session ) ; return sessionObject ; } ) ; return sessionPromise ; }
Gets a new session from the API.
Gets a new session from the API .
// Is there an interval promise? // Cancel it. // Get a session from the API. // Replace currently stored session.