Update session.js

Inject `$rootScope`