Implemented session awareness in angular