Currently, I'm in the process of creating a web app using AngularJS. The app consists of a login page and register page. My primary concern revolves around implementing a login functionality and maintaining a session with specific users. When a user attempts to log in, a post request is sent to the server for validation. Once authenticated, the user can access various features such as financial information, friends list, age, and more. However, storing sensitive data like passwords on the client side doesn't seem secure. I need a way to securely verify the user without compromising their privacy.
I am struggling to find an efficient solution to this problem while working with AngularJS. PHP might offer better options since sessions are stored on the server side, alleviating some security concerns compared to client-side storage with AngularJS. Can anyone provide guidance on how to address this situation effectively?