I need a hybrid app
which must register/login at central server (with PHP/MySQL)
So I believe I need a RESTfull based connection.
Is a XDK sample/demo available ?
There is no sample for login inside XDK. But you can develop your app using XDK and apply some of the concepts that are in the StackOverflow post:
For more complete information about compiler optimizations, see our Optimization Notice.