Javascript and AngularJS - Good practices to capture data of a logged in user [closed]

2

Sirs, good afternoon. I would like to ask you which best practice you use to capture the data of a user logged in to a web application with a database.

For example: Assuming that I created a site where the user signs up, logs in with his email and password, and when login is directed to a screen with a panel with a number of options, one is power change your registration information. How should I save and capture these values assuming I use MySQL database? Session Storage and Encryption?

My goal is to create a secure site that ensures data integrity.

    
asked by anonymous 19.10.2018 / 18:50

1 answer

1

There is a lot to take into consideration, as is the way you do this login (you said you create a session, your back-end can be asp.net or PHP) if it is Session created between the application and server or cookies for API authentication. Each one is done in a way, you can be sure of both ways.

It would be interesting first to fix these concepts, I suggest you read: link (server and client)

I'd rather create an API from my backend where I have my business rules and another front end API to communicate with backend. So every time I go to do something in the database I do a HTTP Request method and authenticating each operation.

    
19.10.2018 / 19:39