asp.net mvc - AngularJS with web API authentication -


i have started learning angularjs , i'm trying create simple login system. of methods creating , storing cookie authorisation looked lot more complicated .net approach use first thought keep using method of authentication doing call api , keeping angular ui side free of that.

this option suggested in post here -

how handle authentication in angular js application

however when try implement authenticates fine, not save cookie. if access api again , try referencing cookie like,

formsauthentication.getauthcookie(username, createpersistentcookie); 

it there nothing there.

is there simple way of retaining cookie in api not using?

here how can it, let include custom information auth cookie.

https://stackoverflow.com/a/10524305/1121845


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -