angularjs - Which is the better way to store my logincredentials(remember me option) and maintain session throughout the application in angular js -


iam developing angular js web application .i want store login credentials when user checks on remember me option.can 1 please suggest me better way store details of user (local storage or cookies or etc).and want maintain session throughout application ..please give suggestions. in advance

there plenty of solutions kind of stuff. serious security issue, recommend use 1 of instead of "reinventing wheel".

whether system using cookies or localstorage doesn't matter @ end of day. bad idea in general store actual credentials. instead, use token-based system server-client handshake on request.

personally, working firebase , express @ moment.

firebase

firebase "backend service". offer free plan production usage, have @ it. if it, things pretty easy here. pay money , full-featured rest-like "backend" built-in user management (see firebase doc's simplelogin). have calling service methods.

express

this diy way. if want have full-control , free way of doing things, way go. no express master, better have @ tutorials (http://expressjs-book.com/forums/topic/express-js-sessions-a-detailed-tutorial/)

if don't neither firebase nor express, have @ other backend-as-a-service offers. use php. assume 1 oldschool way of implementing user sessions :)


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -