moster67 Expert Licensed User Longtime User Dec 18, 2017 #1 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.
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 Dec 18, 2017 #2 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: Dec 18, 2017 Upvote 0
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.
I inakigarm Well-Known Member Licensed User Longtime User Dec 18, 2017 #3 You can use ABMaterial or check this https://www.b4x.com/android/forum/threads/server-login-system-filters-tutorial.39020/ Upvote 0
You can use ABMaterial or check this https://www.b4x.com/android/forum/threads/server-login-system-filters-tutorial.39020/
Erel B4X founder Staff member Licensed User Longtime User Dec 18, 2017 #4 jRDC2 is a regular B4J server solution. It is less relevant if you are implementing a website. You should use ConnectionPool to connect to the database (as done in jRDC2). Upvote 0
jRDC2 is a regular B4J server solution. It is less relevant if you are implementing a website. You should use ConnectionPool to connect to the database (as done in jRDC2).
moster67 Expert Licensed User Longtime User Dec 18, 2017 #5 inakigarm said: check this https://www.b4x.com/android/forum/threads/server-login-system-filters-tutorial.39020/ Click to expand... Thanks. I missed that one while searching. Seem to be what I am looking for. I only need to set up a few pages so I think this will do. Upvote 0
inakigarm said: check this https://www.b4x.com/android/forum/threads/server-login-system-filters-tutorial.39020/ Click to expand... Thanks. I missed that one while searching. Seem to be what I am looking for. I only need to set up a few pages so I think this will do.