TideSDK Desktop: How to create a login system with PHP session?
I want to create a login system in my desktop application using TideSDK. I have tried to use PHP session, but when I run the application and click some link to another page, the session I have set is disappeared. However, if I run on Web Browser, it works correctly.
I have tried to search, but I cannot find some question that involve with my questions.
I would like to know how to deal with PHP session in TideSDK Desktop or is there an alternative to create the authentication system ?
Thank you for your help.
Answer
Solution:
Not 100% sure what you trying to do, but to persist some info like a session you would be better off using Ti.Properties or localStore of the SQLite DB.
Answer
Solution:
The way I solved the problem looks like this:
on the PHP side:
on the TideSDK side:
Then each connection back to the server is initialized like this:
And then it works.