I am trying to develop an application using Backbonejs and SLIM php framework. Now I need to develop a user login. I read several posts in stackoverflow. Some of them are
How can I deny users access to parts of my Backbone App if they have not logged in?
Backbone.js and user authentication
backbone.js + require.js + user authentication
backbone.js - handling if a user is logged in or not
I would like to know which is the appropriate and secure process/way in this regard ??