client.js
function () {
        if (this.state == 'zombie') {
            this.expireController();  // Toss anything that might have happened

            RemoteObjectTemplate.enableSendMessage(true, this.sendMessage); // Re-enable sending

            this.state = 'live';
            this.rootId = null;  // Cancel forcing our controller on server
            this.refreshSession();

            console.log('Getting live again - fetching state from server');
        }

        this.setCookie('session' + this.app, this.session, 0);
    }
function () {
        if (this.state == 'zombie') {
            this.expireController();  // Toss anything that might have happened

            RemoteObjectTemplate.enableSendMessage(true, this.sendMessage); // Re-enable sending

            this.state = 'live';
            this.rootId = null;  // Cancel forcing our controller on server
            this.refreshSession();

            console.log('Getting live again - fetching state from server');
        }

        this.setCookie('session' + this.app, this.session, 0);
    }
function ( ) { if ( this . state == 'zombie' ) { this . expireController ( ) ; // Toss anything that might have happened RemoteObjectTemplate . enableSendMessage ( true , this . sendMessage ) ; // Re-enable sending this . state = 'live' ; this . rootId = null ; // Cancel forcing our controller on server this . refreshSession ( ) ; console . log ( 'Getting live again - fetching state from server' ) ; } this . setCookie ( 'session' + this . app , this . session , 0 ) ; }
When a zombie gets focus it wakes up.  Pushing it's cookie makes other live windows into zombies
When a zombie gets focus it wakes up . Pushing it s cookie makes other live windows into zombies