I'm learning angular4, and I'd like to know a way to login with it. I can get the data from the backend, but how do I configure the session? (I came from php, the era just use session).
I saw something about storing a token in the localstorage, but that would stay forever, would not it?