PHP session based authentication problem


#1

I want to implement user login system in app using php session-cookie but the problem is that session’s cookies are not being saved.
I think that this is because of some kind of CSRF issue. Server is not sending cookie.
I am new to ionic so i have no idea what is the problem.
Please suggest some solution.


#2

Same here. Cookies are not being sent from the “ionic serve” window but they work ok when accessing the www folder.
Did you find the problem?


#3

If session cookies auth isn’t a must, i recommend JSON Web tokens (JWT) - http://jwt.io/