Implementation of Nodejs AngularJs and sessions