I'm looking for some inspiration (help), in order to do a good login system for my application based my needs, so the scenario goes like this:
I have a backend application which when logged, created a session and the only thing I can see it set on my browser is a PHPSESSID cookie.
So, I have my application done and define like this.
var app = angular.module('myApp', []);
As far as I know, I would have to do something like, check the login controller, if successful, create the line of code I copied and change the view, else, do not created.
So, I thought in creating a controller for this, however, should I create another app only for this? so my ng-app would have 2 applications?, or no matter is logged or not, instantiate the app and hide the home buttons as long as the login is not successful?
I'm kind of lost in here, I would appreciate any help that points me on the right direction.
