B4J Question jServer - 2 questions

moster67

Expert
Licensed User
Longtime User
New stuff for me...
I want to use the B4X server approach (instead of PHP) for setting up a small website. I am creating a login-page and a registration form to query and/or save users in a MySQL database (running on the same VPS as the jServer).

I have two questions in this regard:
1) Would it be better to use jRDC2 as a middleware when communicating with the database?
2) When a user has logged in, how to do I check that the user is still logged in? Do I trace the user by using a cookie? Is there any example available how to handle a user when logged in on a site?

Many thanks.
 

udg

Expert
Licensed User
Longtime User
For a website I would use ABMaterial.
JRDC2 is the recommended way to exchange data with a remore DB
To save login authorization data you have cookies and session data.
 
Last edited:
Upvote 0
Top