angularjs - how to get session or cookie value set in django, php, ruby in angular? -


i trying session and/or cookie value set in django (although don't see being different across other languages php or ruby).

i trying value following angular:

 var app = angular.module('edgefeed', ['ngcookies']);    app.controller('feedcontroller', function($http, $cookiestore) {       self = this;        console.log(sessionstorage.getitem('session_name'));       console.log($cookiestore.get('cookie_name')); 

in console output:

null

undefined

how can session or cookie value in angular?


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -