Login with angularjs and mysql [on hold]

Could someone please tell me how I can make a simple login with authentication using angularjs, and that the session is maintained for other pages also until the session is closed?

Source: New feed
Source Url Login with angularjs and mysql [on hold]