Android Question Working with PHP session

hung

Active Member
Licensed User
Longtime User
I have a php system then allows user login then keep a session information as the login.

From b4a, I want to a) login via post login id and password; b) post sql update based on the session info.

The php program has something like: update table_a set col1='xxx' where id = session("login")

So how could I use the same session during the whole life cycle of the b4a program?

I know webview may do but I want my user use the native Android interface to input and update.

Thanks.
 

hung

Active Member
Licensed User
Longtime User
Hi Erel,

In IE or browser, after login and authenticate, then in server side i set session("login"), so subsequent requests know that i have login successed, no need to past userid and password. Until the browse close, next time open browse i will need to login again.

For http library, does that mean if i do login post in first "ExecuteCredentials" in app, will the subsequent "Execute" using same server session until i quit the app?

Thanks,
Hung
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…