- The session is set by server when the user logs in
I want to retrieve this value in my angular front end, but it says undefined
The relevant code is
$scope.logout = function () {
console.log('session value', $cookieStore.get('session'));
}
and my app is also configured to include ngCookies
var app = angular.module('myApp', ['ngCookies']);
when I run my application, i see
session value undefined
I can however, see the session in Chrome Dev Tools

What is that I am missing?