Cookie-based sessions angularjs -


on project use token based session, store in localstorage. have change cookie session. backend changed. have issue on frontend - after request login in response header see:

set-cookie:phpsessid=4hdlnbi5tmkfrq95f072kf2lk0; path=/; httponly 

but can't see cookies in browser.

here part of authentification controller. maybe there're changes need make.

authservice.login = function (credentials) {             return $http.post(config.baseurl + "logins", credentials)                 .then(function (result) {                     session.create(result.data.token, result.data.level, result.data.accessto, credentials.remember, result.data.user);                     return result;                 });         }; 


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -