So I have my Angular app setup with the angular-dreamfactory. I also have a UserService, implemented similarly to the way it is in the example trivia app. Everything works fine, but every time the page is reloaded, or browser window closed, the current logged in session is lost, and the user needs to login again to create a new session.
What is the recommended way to do session persistence? I could probably save the session_id in a cookie, but I’d then need to load it and use it, and deal with session expiration. Not exactly trivial.
I’d like to see how some of you guys implemented this.